UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

43 lines (42 loc) 2.21 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GoToTextInput = exports.paginationGoToTextInputStencil = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const React = __importStar(require("react")); const canvas_kit_styling_1 = require("@workday/canvas-kit-styling"); const common_1 = require("@workday/canvas-kit-react/common"); const text_input_1 = require("@workday/canvas-kit-react/text-input"); const useGoToForm_1 = require("./useGoToForm"); exports.paginationGoToTextInputStencil = (0, canvas_kit_styling_1.createStencil)({ base: { name: "48s2gv", styles: "box-sizing:border-box;min-width:3.4375rem;width:3.4375rem;" } }, "pagination-go-to-text-input-c73671"); exports.GoToTextInput = (0, common_1.createComponent)('input')({ displayName: 'Pagination.GoToTextInput', Component(elemProps, ref, Element) { const { inputProps } = React.useContext(useGoToForm_1.GoToContext); return ((0, jsx_runtime_1.jsx)(text_input_1.TextInput, { ref: ref, as: Element, size: 1, ...(0, canvas_kit_styling_1.handleCsProp)({ ...inputProps, ...elemProps }, (0, exports.paginationGoToTextInputStencil)()) })); }, });