@teamturing/react-kit 2.51.3 → 2.51.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Tooltip/index.d.ts +2 -2
- package/dist/index.js +1342 -24149
- package/esm/_virtual/_commonjsHelpers.js +1 -3
- package/esm/core/ActionList/ActionListItem.js +18 -20
- package/esm/core/ActionList/ActionListSectionDivider.js +2 -2
- package/esm/core/ActionList/ActionListSectionHeader.js +3 -3
- package/esm/core/ActionList/index.js +3 -3
- package/esm/core/AnimatePresence/index.js +2 -5
- package/esm/core/Avatar/index.js +3 -3
- package/esm/core/AvatarGroup/AvatarGroupItem.js +4 -4
- package/esm/core/AvatarGroup/index.js +13 -13
- package/esm/core/BadgeAttacher/index.js +2 -2
- package/esm/core/Breadcrumbs/BreadcrumbsItem.js +4 -4
- package/esm/core/Breadcrumbs/index.js +5 -5
- package/esm/core/Button/index.js +7 -7
- package/esm/core/Card/index.js +1 -1
- package/esm/core/Checkbox/index.js +3 -3
- package/esm/core/Chip/index.js +4 -4
- package/esm/core/ClickArea/index.js +2 -2
- package/esm/core/CounterBadge/index.js +3 -3
- package/esm/core/Datagrid/DatagridBody.js +3 -3
- package/esm/core/Datagrid/DatagridCell.js +2 -2
- package/esm/core/Datagrid/DatagridHeader.js +7 -7
- package/esm/core/Datagrid/DatagridRow.js +3 -3
- package/esm/core/Datagrid/DatagridSubheader.js +3 -3
- package/esm/core/Datagrid/index.js +4 -4
- package/esm/core/DescriptionList/index.js +11 -11
- package/esm/core/Dialog/DialogBody.js +2 -2
- package/esm/core/Dialog/DialogFooter.js +2 -2
- package/esm/core/Dialog/DialogHeader.js +2 -2
- package/esm/core/Dialog/DialogHeaderSubtitle.js +2 -2
- package/esm/core/Dialog/DialogHeaderTitle.js +2 -2
- package/esm/core/Dialog/index.js +8 -8
- package/esm/core/Drawer/DrawerBody.js +2 -2
- package/esm/core/Drawer/DrawerFooter.js +2 -2
- package/esm/core/Drawer/DrawerHeader.js +2 -2
- package/esm/core/Drawer/DrawerHeaderIconButton.js +2 -2
- package/esm/core/Drawer/index.js +12 -13
- package/esm/core/EmptyState/index.js +8 -9
- package/esm/core/Flash/index.js +12 -15
- package/esm/core/FormControl/FormControlCaption.js +2 -2
- package/esm/core/FormControl/FormControlErrorMessage.js +2 -2
- package/esm/core/FormControl/FormControlLabel.js +5 -5
- package/esm/core/FormControl/FormControlSuccessMessage.js +2 -2
- package/esm/core/FormControl/FormControlTooltipIcon.js +5 -6
- package/esm/core/FormControl/index.js +8 -8
- package/esm/core/Grid/index.js +4 -6
- package/esm/core/HorizontalDivider/index.js +2 -2
- package/esm/core/IconButton/index.js +3 -3
- package/esm/core/IconToggleButton/index.js +3 -3
- package/esm/core/ItemList/index.js +2 -2
- package/esm/core/MotionView/index.js +1 -1
- package/esm/core/Overlay/index.js +4 -4
- package/esm/core/OverlayPopper/index.js +4 -6
- package/esm/core/Pagination/index.js +15 -17
- package/esm/core/Pill/index.js +11 -12
- package/esm/core/Radio/index.js +3 -3
- package/esm/core/SearchSelectInput/index.js +22 -28
- package/esm/core/Select/SelectOption.js +3 -3
- package/esm/core/Select/index.js +11 -13
- package/esm/core/Spinner/index.js +2 -3
- package/esm/core/Stack/index.js +4 -4
- package/esm/core/StyledIcon/index.js +3 -3
- package/esm/core/Switch/index.js +3 -3
- package/esm/core/Tab/TabItem.js +5 -5
- package/esm/core/Tab/index.js +18 -19
- package/esm/core/TextInput/TextInputTrailingAction.js +4 -4
- package/esm/core/TextInput/index.js +9 -11
- package/esm/core/Textarea/index.js +6 -8
- package/esm/core/ThemeProvider/index.js +2 -2
- package/esm/core/Toast/index.js +6 -8
- package/esm/core/Tooltip/BaseTooltip.js +8 -8
- package/esm/core/Tooltip/index.js +4 -4
- package/esm/core/Tooltip/useTooltip.js +1 -3
- package/esm/enigma/EnigmaUI/index.js +3 -4
- package/esm/enigma/Layout/SingleColumnLayout/index.js +4 -4
- package/esm/enigma/View/ChipGroupView/index.js +6 -6
- package/esm/enigma/View/GridView/index.js +5 -5
- package/esm/enigma/View/HorizontalDividerView/index.js +2 -2
- package/esm/enigma/View/IconView/index.js +4 -4
- package/esm/enigma/View/ImageView/index.js +2 -2
- package/esm/enigma/View/TextView/index.js +2 -2
- package/esm/hook/useFocusTrap.js +5 -5
- package/esm/hook/useFocusZone.js +2 -2
- package/esm/hook/useResize.js +1 -1
- package/esm/index.js +1 -1
- package/esm/theme/index.js +1 -13
- package/package.json +2 -2
- package/esm/_virtual/index.js +0 -3
- package/esm/_virtual/jsx-runtime.js +0 -3
- package/esm/_virtual/react-is.development.js +0 -3
- package/esm/_virtual/react-is.production.min.js +0 -3
- package/esm/_virtual/react-jsx-runtime.development.js +0 -3
- package/esm/_virtual/react-jsx-runtime.production.min.js +0 -3
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -593
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -731
- package/esm/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -1621
- package/esm/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -233
- package/esm/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -321
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -136
- package/esm/node_modules/@primer/behaviors/dist/esm/focus-trap.js +0 -105
- package/esm/node_modules/@primer/behaviors/dist/esm/focus-zone.js +0 -436
- package/esm/node_modules/@primer/behaviors/dist/esm/polyfills/event-listener-signal.js +0 -38
- package/esm/node_modules/@primer/behaviors/dist/esm/utils/iterate-focusable-elements.js +0 -65
- package/esm/node_modules/@primer/behaviors/dist/esm/utils/unique-id.js +0 -6
- package/esm/node_modules/@primer/behaviors/dist/esm/utils/user-agent.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/animation/animators/instant.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/animation/animators/js/driver-frameloop.js +0 -16
- package/esm/node_modules/framer-motion/dist/es/animation/animators/js/index.js +0 -303
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/create-accelerated-animation.js +0 -199
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/easing.js +0 -31
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -23
- package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -87
- package/esm/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -51
- package/esm/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -89
- package/esm/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -129
- package/esm/node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -101
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/single-value.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -71
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -63
- package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/animation/utils/keyframes.js +0 -45
- package/esm/node_modules/framer-motion/dist/es/animation/utils/transitions.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -71
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -56
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -158
- package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/debug/record.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/back.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/easing/circ.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -51
- package/esm/node_modules/framer-motion/dist/es/easing/ease.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -37
- package/esm/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -60
- package/esm/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -104
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -457
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -27
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -125
- package/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/lock.js +0 -53
- package/esm/node_modules/framer-motion/dist/es/gestures/focus.js +0 -41
- package/esm/node_modules/framer-motion/dist/es/gestures/hover.js +0 -32
- package/esm/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -148
- package/esm/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -46
- package/esm/node_modules/framer-motion/dist/es/gestures/press.js +0 -120
- package/esm/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.js +0 -20
- package/esm/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -31
- package/esm/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -38
- package/esm/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/esm/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/esm/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -131
- package/esm/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -72
- package/esm/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -49
- package/esm/node_modules/framer-motion/dist/es/motion/index.js +0 -79
- package/esm/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -33
- package/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -75
- package/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -81
- package/esm/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -59
- package/esm/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -93
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -33
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -20
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -122
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -41
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -54
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -25
- package/esm/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -27
- package/esm/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -1494
- package/esm/node_modules/framer-motion/dist/es/projection/node/state.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -112
- package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -41
- package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -35
- package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -42
- package/esm/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -507
- package/esm/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -48
- package/esm/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/render/dom/motion-proxy.js +0 -47
- package/esm/node_modules/framer-motion/dist/es/render/dom/motion.js +0 -23
- package/esm/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -35
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/create-config.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -89
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -57
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -230
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -10
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -72
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -55
- package/esm/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -57
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -74
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -45
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/render/html/utils/transform.js +0 -28
- package/esm/node_modules/framer-motion/dist/es/render/store.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -46
- package/esm/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -33
- package/esm/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -52
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -32
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -319
- package/esm/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/esm/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -8
- package/esm/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -63
- package/esm/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -26
- package/esm/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -101
- package/esm/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/utils/array.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/clamp.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/utils/delay.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/utils/errors.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -42
- package/esm/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -92
- package/esm/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/memo.js +0 -10
- package/esm/node_modules/framer-motion/dist/es/utils/mix-color.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/utils/mix-complex.js +0 -64
- package/esm/node_modules/framer-motion/dist/es/utils/mix.js +0 -24
- package/esm/node_modules/framer-motion/dist/es/utils/noop.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/esm/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -12
- package/esm/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/utils/pipe.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/progress.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
- package/esm/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/utils/time-conversion.js +0 -10
- package/esm/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -18
- package/esm/node_modules/framer-motion/dist/es/utils/use-force-update.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/utils/use-instant-transition-state.js +0 -5
- package/esm/node_modules/framer-motion/dist/es/utils/use-is-mounted.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/esm/node_modules/framer-motion/dist/es/utils/use-unmount-effect.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -11
- package/esm/node_modules/framer-motion/dist/es/value/index.js +0 -331
- package/esm/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -40
- package/esm/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -22
- package/esm/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -28
- package/esm/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -25
- package/esm/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -23
- package/esm/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -30
- package/esm/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -92
- package/esm/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -17
- package/esm/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -19
- package/esm/node_modules/framer-motion/dist/es/value/types/utils.js +0 -15
- package/esm/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
- package/esm/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -3
- package/esm/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -16
- package/esm/node_modules/lodash.debounce/index.js +0 -363
- package/esm/node_modules/lodash.throttle/index.js +0 -424
- package/esm/node_modules/lodash.toarray/index.js +0 -849
- package/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1140
- package/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -53
- package/esm/node_modules/react/jsx-runtime.js +0 -12
- package/esm/node_modules/react-is/cjs/react-is.development.js +0 -211
- package/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -123
- package/esm/node_modules/react-is/index.js +0 -12
- package/esm/node_modules/tabbable/dist/index.esm.js +0 -560
- package/esm/packages/icons/esm/AHorizontalLine.js +0 -15
- package/esm/packages/icons/esm/AInCircleFilled.js +0 -21
- package/esm/packages/icons/esm/AVertialLine.js +0 -15
- package/esm/packages/icons/esm/Ai.js +0 -23
- package/esm/packages/icons/esm/AiColor.js +0 -23
- package/esm/packages/icons/esm/AiSad.js +0 -24
- package/esm/packages/icons/esm/Alarm.js +0 -17
- package/esm/packages/icons/esm/AppleColor.js +0 -18
- package/esm/packages/icons/esm/ArrowBelow.js +0 -17
- package/esm/packages/icons/esm/ArrowDiagonal.js +0 -15
- package/esm/packages/icons/esm/ArrowDown.js +0 -17
- package/esm/packages/icons/esm/ArrowLeft.js +0 -17
- package/esm/packages/icons/esm/ArrowLeftCircle.js +0 -15
- package/esm/packages/icons/esm/ArrowLeftLimit.js +0 -17
- package/esm/packages/icons/esm/ArrowLeftRight.js +0 -17
- package/esm/packages/icons/esm/ArrowRight.js +0 -17
- package/esm/packages/icons/esm/ArrowRightCircle.js +0 -15
- package/esm/packages/icons/esm/ArrowRightLimit.js +0 -17
- package/esm/packages/icons/esm/ArrowUp.js +0 -17
- package/esm/packages/icons/esm/ArrowUpDown.js +0 -17
- package/esm/packages/icons/esm/ArrowUpLimit.js +0 -17
- package/esm/packages/icons/esm/Barchart.js +0 -15
- package/esm/packages/icons/esm/Book.js +0 -17
- package/esm/packages/icons/esm/BookColor.js +0 -28
- package/esm/packages/icons/esm/Bookmark.js +0 -17
- package/esm/packages/icons/esm/BookmarkAnimation.js +0 -17
- package/esm/packages/icons/esm/Box.js +0 -24
- package/esm/packages/icons/esm/BoxPlus.js +0 -15
- package/esm/packages/icons/esm/BusColor.js +0 -36
- package/esm/packages/icons/esm/Calendar.js +0 -22
- package/esm/packages/icons/esm/CalendarCheck.js +0 -17
- package/esm/packages/icons/esm/CalendarCheckColor.js +0 -20
- package/esm/packages/icons/esm/CalendarColor.js +0 -36
- package/esm/packages/icons/esm/Camera.js +0 -22
- package/esm/packages/icons/esm/CameraColor.js +0 -30
- package/esm/packages/icons/esm/Card.js +0 -17
- package/esm/packages/icons/esm/CardsPercent.js +0 -19
- package/esm/packages/icons/esm/CardsPercentColor.js +0 -23
- package/esm/packages/icons/esm/CaretDown.js +0 -15
- package/esm/packages/icons/esm/CaretLeft.js +0 -15
- package/esm/packages/icons/esm/CaretRight.js +0 -15
- package/esm/packages/icons/esm/CaretUp.js +0 -15
- package/esm/packages/icons/esm/Cart.js +0 -17
- package/esm/packages/icons/esm/ChatBubble.js +0 -17
- package/esm/packages/icons/esm/ChatBubbleBadgeColor.js +0 -32
- package/esm/packages/icons/esm/ChatBubbleCorrect.js +0 -24
- package/esm/packages/icons/esm/ChatBubbleCorrectColor.js +0 -22
- package/esm/packages/icons/esm/ChatBubbleDots.js +0 -17
- package/esm/packages/icons/esm/ChatBubbleQuestion.js +0 -17
- package/esm/packages/icons/esm/ChatBubbleQuestionAnimation.js +0 -16
- package/esm/packages/icons/esm/ChatBubbleQuestionColor.js +0 -20
- package/esm/packages/icons/esm/Check.js +0 -15
- package/esm/packages/icons/esm/CheckInCircle.js +0 -17
- package/esm/packages/icons/esm/CheckInCircleColor.js +0 -20
- package/esm/packages/icons/esm/CheckInCircleLine.js +0 -20
- package/esm/packages/icons/esm/ChevronDown.js +0 -17
- package/esm/packages/icons/esm/ChevronDownTwo.js +0 -23
- package/esm/packages/icons/esm/ChevronLeft.js +0 -17
- package/esm/packages/icons/esm/ChevronRight.js +0 -17
- package/esm/packages/icons/esm/ChevronRightTwo.js +0 -23
- package/esm/packages/icons/esm/ChevronUp.js +0 -17
- package/esm/packages/icons/esm/ChevronUpTwo.js +0 -23
- package/esm/packages/icons/esm/Circles.js +0 -17
- package/esm/packages/icons/esm/Clip.js +0 -15
- package/esm/packages/icons/esm/Close.js +0 -17
- package/esm/packages/icons/esm/CloseInCircle.js +0 -17
- package/esm/packages/icons/esm/Coin.js +0 -17
- package/esm/packages/icons/esm/Contact.js +0 -17
- package/esm/packages/icons/esm/Copy.js +0 -22
- package/esm/packages/icons/esm/Correct.js +0 -16
- package/esm/packages/icons/esm/Coupon.js +0 -17
- package/esm/packages/icons/esm/Crop.js +0 -24
- package/esm/packages/icons/esm/Crown.js +0 -17
- package/esm/packages/icons/esm/Curriculum.js +0 -31
- package/esm/packages/icons/esm/CurriculumColor.js +0 -38
- package/esm/packages/icons/esm/Cursor.js +0 -22
- package/esm/packages/icons/esm/Delete.js +0 -17
- package/esm/packages/icons/esm/Document.js +0 -22
- package/esm/packages/icons/esm/Dots.js +0 -17
- package/esm/packages/icons/esm/Download.js +0 -18
- package/esm/packages/icons/esm/Emoji.js +0 -17
- package/esm/packages/icons/esm/EmojiPlus.js +0 -22
- package/esm/packages/icons/esm/EmojiPlusDash.js +0 -17
- package/esm/packages/icons/esm/Eng.js +0 -20
- package/esm/packages/icons/esm/Enter.js +0 -17
- package/esm/packages/icons/esm/Equal.js +0 -17
- package/esm/packages/icons/esm/Eraser.js +0 -17
- package/esm/packages/icons/esm/ExclamationPointInCircle.js +0 -17
- package/esm/packages/icons/esm/ExternalLink.js +0 -27
- package/esm/packages/icons/esm/EyeOff.js +0 -15
- package/esm/packages/icons/esm/EyeOn.js +0 -22
- package/esm/packages/icons/esm/EyesTwo.js +0 -15
- package/esm/packages/icons/esm/FaceHappy.js +0 -17
- package/esm/packages/icons/esm/FaceSad.js +0 -17
- package/esm/packages/icons/esm/Facebook.js +0 -15
- package/esm/packages/icons/esm/FacebookColor.js +0 -20
- package/esm/packages/icons/esm/Filter.js +0 -17
- package/esm/packages/icons/esm/Find.js +0 -17
- package/esm/packages/icons/esm/Fire.js +0 -15
- package/esm/packages/icons/esm/FireColor.js +0 -27
- package/esm/packages/icons/esm/Flag.js +0 -15
- package/esm/packages/icons/esm/Folder.js +0 -17
- package/esm/packages/icons/esm/Frame.js +0 -17
- package/esm/packages/icons/esm/Glasses.js +0 -17
- package/esm/packages/icons/esm/Global.js +0 -17
- package/esm/packages/icons/esm/GoogleColor.js +0 -35
- package/esm/packages/icons/esm/Graph.js +0 -17
- package/esm/packages/icons/esm/Hair.js +0 -17
- package/esm/packages/icons/esm/Headphone.js +0 -17
- package/esm/packages/icons/esm/Heart.js +0 -17
- package/esm/packages/icons/esm/Home.js +0 -17
- package/esm/packages/icons/esm/Infinite.js +0 -15
- package/esm/packages/icons/esm/InfoInCircle.js +0 -17
- package/esm/packages/icons/esm/Instagram.js +0 -17
- package/esm/packages/icons/esm/KakaoColor.js +0 -20
- package/esm/packages/icons/esm/Kor.js +0 -20
- package/esm/packages/icons/esm/LandscapeArrow.js +0 -20
- package/esm/packages/icons/esm/League.js +0 -17
- package/esm/packages/icons/esm/Letter.js +0 -17
- package/esm/packages/icons/esm/LetterCrownColor.js +0 -26
- package/esm/packages/icons/esm/LetterCrownOpenColor.js +0 -35
- package/esm/packages/icons/esm/LetterHeartColor.js +0 -26
- package/esm/packages/icons/esm/LetterHeartOpenColor.js +0 -35
- package/esm/packages/icons/esm/LineThree.js +0 -17
- package/esm/packages/icons/esm/Link.js +0 -22
- package/esm/packages/icons/esm/Lock.js +0 -17
- package/esm/packages/icons/esm/LogoApple.js +0 -17
- package/esm/packages/icons/esm/LogoColor.js +0 -22
- package/esm/packages/icons/esm/LogoFacebook.js +0 -17
- package/esm/packages/icons/esm/LogoKakao.js +0 -17
- package/esm/packages/icons/esm/LogoNaver.js +0 -15
- package/esm/packages/icons/esm/MagicWand.js +0 -22
- package/esm/packages/icons/esm/Maxsize.js +0 -15
- package/esm/packages/icons/esm/Minsize.js +0 -17
- package/esm/packages/icons/esm/Minus.js +0 -17
- package/esm/packages/icons/esm/MinusInCircle.js +0 -17
- package/esm/packages/icons/esm/Moneybag.js +0 -17
- package/esm/packages/icons/esm/MoneybagColor.js +0 -20
- package/esm/packages/icons/esm/Moon.js +0 -15
- package/esm/packages/icons/esm/More.js +0 -17
- package/esm/packages/icons/esm/MyBubble.js +0 -17
- package/esm/packages/icons/esm/NaverColor.js +0 -18
- package/esm/packages/icons/esm/New.js +0 -22
- package/esm/packages/icons/esm/Note.js +0 -17
- package/esm/packages/icons/esm/NoteColor.js +0 -18
- package/esm/packages/icons/esm/NotePenColor.js +0 -46
- package/esm/packages/icons/esm/NumberFiveFilled.js +0 -17
- package/esm/packages/icons/esm/NumberFiveOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberFourFilled.js +0 -17
- package/esm/packages/icons/esm/NumberFourOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberOneFilled.js +0 -17
- package/esm/packages/icons/esm/NumberOneOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberThreeFilled.js +0 -17
- package/esm/packages/icons/esm/NumberThreeOutlined.js +0 -20
- package/esm/packages/icons/esm/NumberTwoFilled.js +0 -17
- package/esm/packages/icons/esm/NumberTwoOutlined.js +0 -20
- package/esm/packages/icons/esm/Out.js +0 -17
- package/esm/packages/icons/esm/PalmTreeColor.js +0 -41
- package/esm/packages/icons/esm/PaperCheck.js +0 -36
- package/esm/packages/icons/esm/PaperPen.js +0 -31
- package/esm/packages/icons/esm/PaperPenColor.js +0 -20
- package/esm/packages/icons/esm/PaperTwo.js +0 -18
- package/esm/packages/icons/esm/Pause.js +0 -17
- package/esm/packages/icons/esm/Pen.js +0 -17
- package/esm/packages/icons/esm/PercentInCircle.js +0 -22
- package/esm/packages/icons/esm/Picture.js +0 -17
- package/esm/packages/icons/esm/Pill.js +0 -25
- package/esm/packages/icons/esm/PillColor.js +0 -18
- package/esm/packages/icons/esm/Pin.js +0 -17
- package/esm/packages/icons/esm/PinColorRed.js +0 -26
- package/esm/packages/icons/esm/Play.js +0 -15
- package/esm/packages/icons/esm/Plus.js +0 -17
- package/esm/packages/icons/esm/PlusInCircle.js +0 -17
- package/esm/packages/icons/esm/PointInCircle.js +0 -22
- package/esm/packages/icons/esm/PointInCircleColor.js +0 -27
- package/esm/packages/icons/esm/PortraitArrow.js +0 -20
- package/esm/packages/icons/esm/Present.js +0 -21
- package/esm/packages/icons/esm/PresentColor.js +0 -20
- package/esm/packages/icons/esm/Print.js +0 -20
- package/esm/packages/icons/esm/Problem.js +0 -15
- package/esm/packages/icons/esm/Profile.js +0 -17
- package/esm/packages/icons/esm/ProgressGradient.js +0 -41
- package/esm/packages/icons/esm/QuestionMarkInCircle.js +0 -17
- package/esm/packages/icons/esm/QuestionMarkInCircleOutlined.js +0 -20
- package/esm/packages/icons/esm/QuizColor.js +0 -28
- package/esm/packages/icons/esm/RaffleColor.js +0 -113
- package/esm/packages/icons/esm/Receipt.js +0 -17
- package/esm/packages/icons/esm/Refresh.js +0 -17
- package/esm/packages/icons/esm/Repeat.js +0 -15
- package/esm/packages/icons/esm/ReportColor.js +0 -30
- package/esm/packages/icons/esm/School.js +0 -20
- package/esm/packages/icons/esm/SchoolColor.js +0 -27
- package/esm/packages/icons/esm/Scroll.js +0 -22
- package/esm/packages/icons/esm/Search.js +0 -15
- package/esm/packages/icons/esm/Set.js +0 -20
- package/esm/packages/icons/esm/Setting.js +0 -17
- package/esm/packages/icons/esm/Share.js +0 -22
- package/esm/packages/icons/esm/ShieldCheck.js +0 -15
- package/esm/packages/icons/esm/Sidebar.js +0 -17
- package/esm/packages/icons/esm/Siren.js +0 -17
- package/esm/packages/icons/esm/Skipback.js +0 -17
- package/esm/packages/icons/esm/Skipforward.js +0 -17
- package/esm/packages/icons/esm/SoundOff.js +0 -15
- package/esm/packages/icons/esm/SoundOn.js +0 -25
- package/esm/packages/icons/esm/SoundPaper.js +0 -20
- package/esm/packages/icons/esm/Speaker.js +0 -17
- package/esm/packages/icons/esm/Stackup.js +0 -27
- package/esm/packages/icons/esm/Star.js +0 -17
- package/esm/packages/icons/esm/StarColor.js +0 -21
- package/esm/packages/icons/esm/Store.js +0 -15
- package/esm/packages/icons/esm/Sun.js +0 -15
- package/esm/packages/icons/esm/Sync.js +0 -17
- package/esm/packages/icons/esm/TestUploadColor.js +0 -26
- package/esm/packages/icons/esm/Thumbdown.js +0 -17
- package/esm/packages/icons/esm/Thumbup.js +0 -17
- package/esm/packages/icons/esm/Thunder.js +0 -17
- package/esm/packages/icons/esm/Ticket.js +0 -17
- package/esm/packages/icons/esm/TicketColor.js +0 -29
- package/esm/packages/icons/esm/Time.js +0 -17
- package/esm/packages/icons/esm/Timer.js +0 -17
- package/esm/packages/icons/esm/Top.js +0 -17
- package/esm/packages/icons/esm/Touch.js +0 -26
- package/esm/packages/icons/esm/Trash.js +0 -17
- package/esm/packages/icons/esm/Treasurebox.js +0 -22
- package/esm/packages/icons/esm/Trophy.js +0 -17
- package/esm/packages/icons/esm/Twinkle.js +0 -15
- package/esm/packages/icons/esm/TwinkleColor.js +0 -48
- package/esm/packages/icons/esm/Undo.js +0 -17
- package/esm/packages/icons/esm/University.js +0 -26
- package/esm/packages/icons/esm/UserBlocked.js +0 -17
- package/esm/packages/icons/esm/UserCheck.js +0 -17
- package/esm/packages/icons/esm/UserPlus.js +0 -17
- package/esm/packages/icons/esm/UserTwo.js +0 -23
- package/esm/packages/icons/esm/Video.js +0 -17
- package/esm/packages/icons/esm/VideoColor.js +0 -18
- package/esm/packages/icons/esm/VoteColor.js +0 -24
- package/esm/packages/icons/esm/Warning.js +0 -17
- package/esm/packages/icons/esm/Wifi.js +0 -27
- package/esm/packages/icons/esm/Workbook.js +0 -28
- package/esm/packages/icons/esm/WorkbookColor.js +0 -29
- package/esm/packages/icons/esm/Wrong.js +0 -20
- package/esm/packages/icons/esm/Youtube.js +0 -17
- package/esm/packages/icons/esm/_virtual/_rollupPluginBabelHelpers.js +0 -16
- package/esm/packages/icons/esm/index.js +0 -242
- package/esm/packages/token-studio/esm/foundation/breakpoint/device.js +0 -7
- package/esm/packages/token-studio/esm/foundation/gradient/colorStopList/index.js +0 -9
- package/esm/packages/token-studio/esm/foundation/gradient/direction/index.js +0 -9
- package/esm/packages/token-studio/esm/foundation/opacity/index.js +0 -5
- package/esm/packages/token-studio/esm/foundation/palette/index.js +0 -169
- package/esm/packages/token-studio/esm/foundation/rounding/index.js +0 -13
- package/esm/packages/token-studio/esm/foundation/shadow/index.js +0 -5
- package/esm/packages/token-studio/esm/foundation/spacing/index.js +0 -56
- package/esm/packages/token-studio/esm/foundation/typography/fontSize/index.js +0 -18
- package/esm/packages/token-studio/esm/foundation/typography/fontWeight/index.js +0 -13
- package/esm/packages/token-studio/esm/foundation/typography/lineHeight/index.js +0 -6
- package/esm/packages/token-studio/esm/token/breakpoints/index.js +0 -6
- package/esm/packages/token-studio/esm/token/color/gpai/dark.js +0 -223
- package/esm/packages/token-studio/esm/token/color/gpai/light.js +0 -223
- package/esm/packages/token-studio/esm/token/color/index.js +0 -223
- package/esm/packages/token-studio/esm/token/elevation/index.js +0 -7
- package/esm/packages/token-studio/esm/token/gradient/index.js +0 -41
- package/esm/packages/token-studio/esm/token/opacity/index.js +0 -7
- package/esm/packages/token-studio/esm/token/radii/index.js +0 -15
- package/esm/packages/token-studio/esm/token/space/index.js +0 -55
- package/esm/packages/token-studio/esm/token/typography/fontSizes.js +0 -17
- package/esm/packages/token-studio/esm/token/typography/fontWeights.js +0 -9
- package/esm/packages/token-studio/esm/token/typography/index.js +0 -133
- package/esm/packages/token-studio/esm/token/typography/lineHeights.js +0 -8
- package/esm/packages/utils/esm/commaizeNumber.js +0 -10
- package/esm/packages/utils/esm/forcePixelValue.js +0 -8
- package/esm/packages/utils/esm/isArray.js +0 -3
- package/esm/packages/utils/esm/isFunction.js +0 -3
- package/esm/packages/utils/esm/isNullable.js +0 -3
- package/esm/packages/utils/esm/noop.js +0 -6
- package/esm/packages/utils/esm/scrollIntoView.js +0 -46
package/esm/core/Grid/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { forcePixelValue } from '
|
|
2
|
-
import { isArray } from '../../packages/utils/esm/isArray.js';
|
|
3
|
-
import { isNullable } from '../../packages/utils/esm/isNullable.js';
|
|
1
|
+
import { forcePixelValue, isNullable, isArray } from '@teamturing/utils';
|
|
4
2
|
import { forwardRef } from 'react';
|
|
5
3
|
import styled from 'styled-components';
|
|
6
4
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
7
5
|
import View from '../View/index.js';
|
|
8
|
-
import {
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
7
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
10
8
|
|
|
11
9
|
const Grid = /*#__PURE__*/forwardRef(({
|
|
@@ -17,7 +15,7 @@ const Grid = /*#__PURE__*/forwardRef(({
|
|
|
17
15
|
...props
|
|
18
16
|
}, ref) => {
|
|
19
17
|
const wrap = Array.isArray(propWrap) ? propWrap.map(value => value === true ? 'true' : 'false') : propWrap === true ? 'true' : 'false';
|
|
20
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/jsx(BaseGrid, {
|
|
21
19
|
ref: ref,
|
|
22
20
|
gapX: gapX,
|
|
23
21
|
gapY: gapY,
|
|
@@ -108,7 +106,7 @@ const Unit = ({
|
|
|
108
106
|
const percentage = Math.round(size * 100 * 10000) / 10000;
|
|
109
107
|
return size === 'max' ? '100%' : size === 'min' ? 'none' : `${percentage}%`;
|
|
110
108
|
};
|
|
111
|
-
return /*#__PURE__*/
|
|
109
|
+
return /*#__PURE__*/jsx(View, {
|
|
112
110
|
...mapValueToResponsiveValueProps(size, value => ({
|
|
113
111
|
display: value === 0 ? 'none' : 'initial',
|
|
114
112
|
flowGrow: getFlexGrowBySize(value),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
3
3
|
import { sx } from '../../utils/styled-system/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
import { border } from '../../node_modules/@styled-system/border/dist/index.esm.js';
|
|
6
6
|
|
|
7
7
|
const HorizontalDivider = ({
|
|
@@ -10,7 +10,7 @@ const HorizontalDivider = ({
|
|
|
10
10
|
color = 'border/neutral',
|
|
11
11
|
variant = 'solid',
|
|
12
12
|
...props
|
|
13
|
-
}) => /*#__PURE__*/
|
|
13
|
+
}) => /*#__PURE__*/jsx(BaseHorizontalDivider, {
|
|
14
14
|
className: className,
|
|
15
15
|
borderBottomWidth: width,
|
|
16
16
|
borderBottomStyle: variant,
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
4
4
|
import Spinner from '../Spinner/index.js';
|
|
5
5
|
import UnstyledButton from '../_UnstyledButton.js';
|
|
6
|
-
import {
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
8
8
|
|
|
9
9
|
const IconButton = /*#__PURE__*/forwardRef(({
|
|
@@ -15,7 +15,7 @@ const IconButton = /*#__PURE__*/forwardRef(({
|
|
|
15
15
|
tabIndex,
|
|
16
16
|
...props
|
|
17
17
|
}, ref) => {
|
|
18
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/jsx(BaseIconButton, {
|
|
19
19
|
ref: ref,
|
|
20
20
|
icon: Icon,
|
|
21
21
|
size: size,
|
|
@@ -25,7 +25,7 @@ const IconButton = /*#__PURE__*/forwardRef(({
|
|
|
25
25
|
$loading: loading,
|
|
26
26
|
tabIndex: tabIndex,
|
|
27
27
|
...props,
|
|
28
|
-
children: !loading ? /*#__PURE__*/
|
|
28
|
+
children: !loading ? /*#__PURE__*/jsx(Icon, {}) : /*#__PURE__*/jsx(Spinner, {
|
|
29
29
|
color: 'currentColor'
|
|
30
30
|
})
|
|
31
31
|
});
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
4
4
|
import { sx } from '../../utils/styled-system/index.js';
|
|
5
5
|
import UnstyledButton from '../_UnstyledButton.js';
|
|
6
|
-
import {
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
8
8
|
|
|
9
9
|
const IconToggleButton = ({
|
|
@@ -15,7 +15,7 @@ const IconToggleButton = ({
|
|
|
15
15
|
disabled = false,
|
|
16
16
|
sx,
|
|
17
17
|
...props
|
|
18
|
-
}, ref) => /*#__PURE__*/
|
|
18
|
+
}, ref) => /*#__PURE__*/jsx(BaseIconToggleButton, {
|
|
19
19
|
ref: ref,
|
|
20
20
|
icon: Icon,
|
|
21
21
|
size: size,
|
|
@@ -27,7 +27,7 @@ const IconToggleButton = ({
|
|
|
27
27
|
$disabled: disabled,
|
|
28
28
|
sx: sx,
|
|
29
29
|
...props,
|
|
30
|
-
children: /*#__PURE__*/
|
|
30
|
+
children: /*#__PURE__*/jsx(Icon, {})
|
|
31
31
|
});
|
|
32
32
|
const BaseIconToggleButton = styled(UnstyledButton)(({
|
|
33
33
|
$disabled,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
const ItemList = ({
|
|
4
4
|
items,
|
|
@@ -7,7 +7,7 @@ const ItemList = ({
|
|
|
7
7
|
emptyState = null
|
|
8
8
|
}) => {
|
|
9
9
|
if (items.length === 0) return emptyState;
|
|
10
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
11
11
|
children: items.map((item, i) => renderItemWrapper(renderItem(item, i), item, i))
|
|
12
12
|
});
|
|
13
13
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { iterateFocusableElements } from '@primer/behaviors/utils';
|
|
2
|
+
import { forcePixelValue } from '@teamturing/utils';
|
|
2
3
|
import { forwardRef, useRef, useImperativeHandle, useCallback, useEffect } from 'react';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import { maxHeight } from '../../node_modules/styled-system/dist/index.esm.js';
|
|
5
6
|
import { sx } from '../../utils/styled-system/index.js';
|
|
6
|
-
import {
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
8
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
8
|
-
import { iterateFocusableElements } from '../../node_modules/@primer/behaviors/dist/esm/utils/iterate-focusable-elements.js';
|
|
9
9
|
|
|
10
10
|
const Overlay = ({
|
|
11
11
|
children,
|
|
@@ -64,7 +64,7 @@ const Overlay = ({
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
}, [isOpen, handleOutsideClick]);
|
|
67
|
-
return isOpen ? /*#__PURE__*/
|
|
67
|
+
return isOpen ? /*#__PURE__*/jsx(BaseOverlay, {
|
|
68
68
|
ref: overlayRef,
|
|
69
69
|
size: size,
|
|
70
70
|
maxHeight: maxHeight,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { useFloating } from '
|
|
2
|
-
import { isFunction } from '
|
|
1
|
+
import { useFloating, autoUpdate, offset, flip, shift } from '@floating-ui/react';
|
|
2
|
+
import { isFunction } from '@teamturing/utils';
|
|
3
3
|
import { Children, cloneElement } from 'react';
|
|
4
4
|
import { useTheme } from 'styled-components';
|
|
5
5
|
import useDelayedFunction from '../../hook/useDelayedFunction.js';
|
|
6
6
|
import useFocusTrap from '../../hook/useFocusTrap.js';
|
|
7
7
|
import useFocusZone from '../../hook/useFocusZone.js';
|
|
8
8
|
import useToggleState from '../../hook/useToggleState.js';
|
|
9
|
-
import {
|
|
10
|
-
import { autoUpdate } from '../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js';
|
|
11
|
-
import { offset, flip, shift } from '../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js';
|
|
9
|
+
import { jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
10
|
|
|
13
11
|
const OverlayPopper = ({
|
|
14
12
|
children: propChildren,
|
|
@@ -99,7 +97,7 @@ const OverlayPopper = ({
|
|
|
99
97
|
disabled: !isOpen || !isPositioned,
|
|
100
98
|
...focusTrapSettings
|
|
101
99
|
});
|
|
102
|
-
return /*#__PURE__*/
|
|
100
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
103
101
|
children: [children, renderOverlay({
|
|
104
102
|
ref: refs.setFloating,
|
|
105
103
|
isOpen,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { ChevronLeftIcon, ChevronRightIcon } from '@teamturing/icons';
|
|
2
|
+
import { forcePixelValue, noop } from '@teamturing/utils';
|
|
1
3
|
import { useCallback, Fragment } from 'react';
|
|
2
|
-
import SvgChevronLeft from '../../packages/icons/esm/ChevronLeft.js';
|
|
3
|
-
import SvgChevronRight from '../../packages/icons/esm/ChevronRight.js';
|
|
4
|
-
import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
|
|
5
|
-
import { noop } from '../../packages/utils/esm/noop.js';
|
|
6
4
|
import styled, { css } from 'styled-components';
|
|
7
5
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
8
6
|
import { sx } from '../../utils/styled-system/index.js';
|
|
9
7
|
import UnstyledButton from '../_UnstyledButton.js';
|
|
10
|
-
import {
|
|
8
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
9
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
12
10
|
|
|
13
11
|
const Pagination = ({
|
|
@@ -20,7 +18,7 @@ const Pagination = ({
|
|
|
20
18
|
onPageClick = noop,
|
|
21
19
|
onPreviousClick = noop,
|
|
22
20
|
onNextClick = noop,
|
|
23
|
-
renderPage = (page, i) => /*#__PURE__*/
|
|
21
|
+
renderPage = (page, i) => /*#__PURE__*/jsx(PaginationPage, {
|
|
24
22
|
type: 'button',
|
|
25
23
|
onClick: () => onPageClick(page, i),
|
|
26
24
|
selected: i === currentPageIndex,
|
|
@@ -28,22 +26,22 @@ const Pagination = ({
|
|
|
28
26
|
}),
|
|
29
27
|
renderPageWrapper = (children, {
|
|
30
28
|
label
|
|
31
|
-
}, i) => /*#__PURE__*/
|
|
29
|
+
}, i) => /*#__PURE__*/jsx(Fragment, {
|
|
32
30
|
children: children
|
|
33
31
|
}, [label, i].join('-')),
|
|
34
32
|
renderPreviousPageDirection = ({
|
|
35
33
|
previousPageDirectionProps
|
|
36
|
-
}) => /*#__PURE__*/
|
|
34
|
+
}) => /*#__PURE__*/jsxs(PaginationPageDirection, {
|
|
37
35
|
...previousPageDirectionProps,
|
|
38
|
-
children: [/*#__PURE__*/
|
|
36
|
+
children: [/*#__PURE__*/jsx(ChevronLeftIcon, {}), "\uC774\uC804"]
|
|
39
37
|
}),
|
|
40
38
|
renderNextPageDirection = ({
|
|
41
39
|
nextPageDirectionProps
|
|
42
|
-
}) => /*#__PURE__*/
|
|
40
|
+
}) => /*#__PURE__*/jsxs(PaginationPageDirection, {
|
|
43
41
|
...nextPageDirectionProps,
|
|
44
|
-
children: ["\uB2E4\uC74C", /*#__PURE__*/
|
|
42
|
+
children: ["\uB2E4\uC74C", /*#__PURE__*/jsx(ChevronRightIcon, {})]
|
|
45
43
|
}),
|
|
46
|
-
renderTruncationIndicator = () => /*#__PURE__*/
|
|
44
|
+
renderTruncationIndicator = () => /*#__PURE__*/jsx(PaginationTruncationIndicator, {
|
|
47
45
|
children: "\u2026"
|
|
48
46
|
})
|
|
49
47
|
}) => {
|
|
@@ -58,7 +56,7 @@ const Pagination = ({
|
|
|
58
56
|
const isCurrentPageCloseToEndEdge = totalPageCount - (edgePageCount + aroundPageCount + CURRENT_PAGE_COUNT) < currentPageIndex + 1;
|
|
59
57
|
const isTruncationNeeded = totalVisiblePageCount < totalPageCount;
|
|
60
58
|
const renderPaginationPage = useCallback((page, i) => renderPageWrapper(renderPage(page, i), page, i), [currentPageIndex]);
|
|
61
|
-
return /*#__PURE__*/
|
|
59
|
+
return /*#__PURE__*/jsxs(BasePagination, {
|
|
62
60
|
type: type,
|
|
63
61
|
sx: sx,
|
|
64
62
|
children: [renderPreviousPageDirection({
|
|
@@ -73,7 +71,7 @@ const Pagination = ({
|
|
|
73
71
|
}) => renderPaginationPage(page, originalIndex)) : isTruncationNeeded && isCurrentPageCloseToBeginEdge ? [pages.slice(0, edgePageCount + aroundPageCount * 2 + CURRENT_PAGE_COUNT).map(({
|
|
74
72
|
page,
|
|
75
73
|
originalIndex
|
|
76
|
-
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/
|
|
74
|
+
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/jsx(Fragment, {
|
|
77
75
|
children: renderTruncationIndicator()
|
|
78
76
|
}, 'end_truncation_indicator'), pages.slice(edgePageCount * -1).map(({
|
|
79
77
|
page,
|
|
@@ -81,7 +79,7 @@ const Pagination = ({
|
|
|
81
79
|
}) => renderPaginationPage(page, originalIndex))] : isTruncationNeeded && isCurrentPageCloseToEndEdge ? [pages.slice(0, edgePageCount).map(({
|
|
82
80
|
page,
|
|
83
81
|
originalIndex
|
|
84
|
-
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/
|
|
82
|
+
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/jsx(Fragment, {
|
|
85
83
|
children: renderTruncationIndicator()
|
|
86
84
|
}, 'begin_truncation_indicator'), pages.slice(totalPageCount - (edgePageCount + aroundPageCount * 2 + CURRENT_PAGE_COUNT)).map(({
|
|
87
85
|
page,
|
|
@@ -89,12 +87,12 @@ const Pagination = ({
|
|
|
89
87
|
}) => renderPaginationPage(page, originalIndex))] : [pages.slice(0, edgePageCount).map(({
|
|
90
88
|
page,
|
|
91
89
|
originalIndex
|
|
92
|
-
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/
|
|
90
|
+
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/jsx(Fragment, {
|
|
93
91
|
children: renderTruncationIndicator()
|
|
94
92
|
}, 'begin_truncation_indicator'), pages.slice(currentPageIndex - aroundPageCount, currentPageIndex + aroundPageCount + CURRENT_PAGE_COUNT).map(({
|
|
95
93
|
page,
|
|
96
94
|
originalIndex
|
|
97
|
-
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/
|
|
95
|
+
}) => renderPaginationPage(page, originalIndex)), /*#__PURE__*/jsx(Fragment, {
|
|
98
96
|
children: renderTruncationIndicator()
|
|
99
97
|
}, 'end_truncation_indicator'), pages.slice(edgePageCount * -1).map(({
|
|
100
98
|
page,
|
package/esm/core/Pill/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import { CloseIcon } from '@teamturing/icons';
|
|
2
|
+
import { forcePixelValue, isNullable } from '@teamturing/utils';
|
|
1
3
|
import { forwardRef, useCallback } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
|
|
4
|
-
import { isNullable } from '../../packages/utils/esm/isNullable.js';
|
|
5
|
-
import { r as reactIsExports } from '../../node_modules/react-is/index.js';
|
|
4
|
+
import { isValidElementType } from 'react-is';
|
|
6
5
|
import styled from 'styled-components';
|
|
7
6
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
8
7
|
import { sx } from '../../utils/styled-system/index.js';
|
|
9
8
|
import UnstyledButton from '../_UnstyledButton.js';
|
|
10
|
-
import {
|
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
10
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
12
11
|
|
|
13
12
|
const Pill = ({
|
|
@@ -18,7 +17,7 @@ const Pill = ({
|
|
|
18
17
|
leadingVisual: LeadingVisual,
|
|
19
18
|
trailingVisual: TrailingVisual,
|
|
20
19
|
onRemove: propOnRemove,
|
|
21
|
-
removeIcon: RemoveIcon =
|
|
20
|
+
removeIcon: RemoveIcon = CloseIcon,
|
|
22
21
|
...props
|
|
23
22
|
}, ref) => {
|
|
24
23
|
const handleRemove = useCallback(event => {
|
|
@@ -34,7 +33,7 @@ const Pill = ({
|
|
|
34
33
|
handleRemove(event);
|
|
35
34
|
}
|
|
36
35
|
}, [handleRemove, disabled]);
|
|
37
|
-
return /*#__PURE__*/
|
|
36
|
+
return /*#__PURE__*/jsxs(BasePill, {
|
|
38
37
|
ref: ref,
|
|
39
38
|
size: size,
|
|
40
39
|
variant: variant,
|
|
@@ -43,13 +42,13 @@ const Pill = ({
|
|
|
43
42
|
disabled: disabled,
|
|
44
43
|
...props,
|
|
45
44
|
type: 'button',
|
|
46
|
-
children: [typeof LeadingVisual !== 'string' &&
|
|
45
|
+
children: [typeof LeadingVisual !== 'string' && isValidElementType(LeadingVisual) ? /*#__PURE__*/jsx(LeadingVisual, {
|
|
47
46
|
className: 'pill__leading_visual'
|
|
48
|
-
}) : LeadingVisual, /*#__PURE__*/
|
|
47
|
+
}) : LeadingVisual, /*#__PURE__*/jsx("span", {
|
|
49
48
|
children: children
|
|
50
|
-
}), typeof TrailingVisual !== 'string' &&
|
|
49
|
+
}), typeof TrailingVisual !== 'string' && isValidElementType(TrailingVisual) ? /*#__PURE__*/jsx(TrailingVisual, {
|
|
51
50
|
className: 'pill__trailing_visual'
|
|
52
|
-
}) : TrailingVisual, propOnRemove ? /*#__PURE__*/
|
|
51
|
+
}) : TrailingVisual, propOnRemove ? /*#__PURE__*/jsx("div", {
|
|
53
52
|
className: 'pill__remove_button',
|
|
54
53
|
onClick: e => {
|
|
55
54
|
e.preventDefault();
|
|
@@ -68,7 +67,7 @@ const Pill = ({
|
|
|
68
67
|
role: 'button',
|
|
69
68
|
"aria-disabled": disabled,
|
|
70
69
|
tabIndex: disabled ? -1 : 0,
|
|
71
|
-
children: /*#__PURE__*/
|
|
70
|
+
children: /*#__PURE__*/jsx(RemoveIcon, {
|
|
72
71
|
className: 'pill__remove_button__icon'
|
|
73
72
|
})
|
|
74
73
|
}) : null]
|
package/esm/core/Radio/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { forcePixelValue } from '
|
|
1
|
+
import { forcePixelValue } from '@teamturing/utils';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
|
|
5
5
|
import { sx } from '../../utils/styled-system/index.js';
|
|
6
|
-
import {
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
const Radio = ({
|
|
9
9
|
checked,
|
|
@@ -11,7 +11,7 @@ const Radio = ({
|
|
|
11
11
|
...props
|
|
12
12
|
}, ref) => {
|
|
13
13
|
const radioRef = useProvidedOrCreatedRef(ref);
|
|
14
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/jsx(BaseRadio, {
|
|
15
15
|
ref: radioRef,
|
|
16
16
|
checked: checked,
|
|
17
17
|
validationStatus: validationStatus,
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
+
import { SearchIcon, ChevronDownIcon } from '@teamturing/icons';
|
|
2
|
+
import { forcePixelValue, isArray, isNullable, scrollIntoView, noop, isFunction } from '@teamturing/utils';
|
|
1
3
|
import { forwardRef, useRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import SvgSearch from '../../packages/icons/esm/Search.js';
|
|
4
|
-
import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
|
|
5
|
-
import { isArray } from '../../packages/utils/esm/isArray.js';
|
|
6
|
-
import { isFunction } from '../../packages/utils/esm/isFunction.js';
|
|
7
|
-
import { isNullable } from '../../packages/utils/esm/isNullable.js';
|
|
8
|
-
import { noop } from '../../packages/utils/esm/noop.js';
|
|
9
|
-
import { scrollIntoView } from '../../packages/utils/esm/scrollIntoView.js';
|
|
10
|
-
import { r as reactIsExports } from '../../node_modules/react-is/index.js';
|
|
4
|
+
import { isValidElementType } from 'react-is';
|
|
11
5
|
import styled, { css, useTheme } from 'styled-components';
|
|
12
6
|
import useDevice from '../../hook/useDevice.js';
|
|
13
7
|
import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
|
|
@@ -18,7 +12,7 @@ import Space from '../Space/index.js';
|
|
|
18
12
|
import StyledIcon from '../StyledIcon/index.js';
|
|
19
13
|
import TextInput from '../TextInput/index.js';
|
|
20
14
|
import View from '../View/index.js';
|
|
21
|
-
import {
|
|
15
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
16
|
|
|
23
17
|
const SearchSelectInput = ({
|
|
24
18
|
validationStatus,
|
|
@@ -32,7 +26,7 @@ const SearchSelectInput = ({
|
|
|
32
26
|
overlayProps: propOverlayProps,
|
|
33
27
|
searchInputProps,
|
|
34
28
|
value,
|
|
35
|
-
renderValue = value => /*#__PURE__*/
|
|
29
|
+
renderValue = value => /*#__PURE__*/jsx(Fragment, {
|
|
36
30
|
children: value
|
|
37
31
|
}),
|
|
38
32
|
onChange,
|
|
@@ -78,7 +72,7 @@ const SearchSelectInput = ({
|
|
|
78
72
|
const listContainerRef = useRef(null);
|
|
79
73
|
const searchInputRef = useRef(null);
|
|
80
74
|
const activeDescendantRef = useRef();
|
|
81
|
-
return /*#__PURE__*/
|
|
75
|
+
return /*#__PURE__*/jsx(OverlayPopper, {
|
|
82
76
|
focusTrapSettings: {
|
|
83
77
|
initialFocusRef: isDesktop ? searchInputRef : dummyRef,
|
|
84
78
|
restoreFocusOnCleanUp: true,
|
|
@@ -115,7 +109,7 @@ const SearchSelectInput = ({
|
|
|
115
109
|
onClose: handleClose,
|
|
116
110
|
renderOverlay: (overlayProps, overlayHandler, {
|
|
117
111
|
elements
|
|
118
|
-
}) => /*#__PURE__*/
|
|
112
|
+
}) => /*#__PURE__*/jsxs(Overlay, {
|
|
119
113
|
...propOverlayProps,
|
|
120
114
|
...overlayProps,
|
|
121
115
|
maxHeight: 300,
|
|
@@ -133,20 +127,20 @@ const SearchSelectInput = ({
|
|
|
133
127
|
overlayHandler.closeOverlay();
|
|
134
128
|
}
|
|
135
129
|
},
|
|
136
|
-
children: [!isDesktop ? /*#__PURE__*/
|
|
130
|
+
children: [!isDesktop ? /*#__PURE__*/jsx(View, {
|
|
137
131
|
"aria-hidden": true,
|
|
138
132
|
ref: dummyRef,
|
|
139
133
|
tabIndex: 0
|
|
140
|
-
}) : null, /*#__PURE__*/
|
|
134
|
+
}) : null, /*#__PURE__*/jsx(Space, {
|
|
141
135
|
p: 2,
|
|
142
136
|
sx: {
|
|
143
137
|
flexGrow: 0,
|
|
144
138
|
flexShrink: 0,
|
|
145
139
|
flexBasis: 'auto'
|
|
146
140
|
},
|
|
147
|
-
children: /*#__PURE__*/
|
|
141
|
+
children: /*#__PURE__*/jsx(TextInput, {
|
|
148
142
|
ref: searchInputRef,
|
|
149
|
-
leadingVisual:
|
|
143
|
+
leadingVisual: SearchIcon,
|
|
150
144
|
onKeyDown: e => {
|
|
151
145
|
if (e.code === 'Enter' && activeDescendantRef.current) {
|
|
152
146
|
const activeDescendantEvent = new KeyboardEvent(e.type, e.nativeEvent);
|
|
@@ -156,7 +150,7 @@ const SearchSelectInput = ({
|
|
|
156
150
|
},
|
|
157
151
|
...searchInputProps
|
|
158
152
|
})
|
|
159
|
-
}), /*#__PURE__*/
|
|
153
|
+
}), /*#__PURE__*/jsx(HorizontalDivider, {}), /*#__PURE__*/jsx(View, {
|
|
160
154
|
ref: listContainerRef,
|
|
161
155
|
sx: {
|
|
162
156
|
flexGrow: 1,
|
|
@@ -169,7 +163,7 @@ const SearchSelectInput = ({
|
|
|
169
163
|
}, overlayHandler)
|
|
170
164
|
})]
|
|
171
165
|
}),
|
|
172
|
-
children: popperProps => /*#__PURE__*/
|
|
166
|
+
children: popperProps => /*#__PURE__*/jsxs(TextInputWrapper, {
|
|
173
167
|
...(disabled ? {} : {
|
|
174
168
|
...popperProps,
|
|
175
169
|
onClick: e => {
|
|
@@ -181,7 +175,7 @@ const SearchSelectInput = ({
|
|
|
181
175
|
disabled: disabled,
|
|
182
176
|
hasLeadingVisual: hasLeadingVisual,
|
|
183
177
|
validationStatus: validationStatus,
|
|
184
|
-
children: [/*#__PURE__*/
|
|
178
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
185
179
|
sx: {
|
|
186
180
|
'flexShrink': 0,
|
|
187
181
|
'fontSize': 'xxs',
|
|
@@ -194,8 +188,8 @@ const SearchSelectInput = ({
|
|
|
194
188
|
color: 'icon/neutral/bold'
|
|
195
189
|
}
|
|
196
190
|
},
|
|
197
|
-
children: typeof LeadingVisual !== 'string' &&
|
|
198
|
-
}), /*#__PURE__*/
|
|
191
|
+
children: typeof LeadingVisual !== 'string' && isValidElementType(LeadingVisual) ? /*#__PURE__*/jsx(LeadingVisual, {}) : LeadingVisual
|
|
192
|
+
}), /*#__PURE__*/jsxs(View, {
|
|
199
193
|
sx: {
|
|
200
194
|
display: 'flex',
|
|
201
195
|
alignItems: 'center',
|
|
@@ -208,7 +202,7 @@ const SearchSelectInput = ({
|
|
|
208
202
|
width: '100%',
|
|
209
203
|
cursor: disabled ? 'not-allowed' : 'default'
|
|
210
204
|
},
|
|
211
|
-
children: [isVisibleValueExist ? /*#__PURE__*/
|
|
205
|
+
children: [isVisibleValueExist ? /*#__PURE__*/jsx(View, {
|
|
212
206
|
sx: {
|
|
213
207
|
flex: '0 1 auto',
|
|
214
208
|
maxWidth: '100%',
|
|
@@ -217,7 +211,7 @@ const SearchSelectInput = ({
|
|
|
217
211
|
overflow: 'hidden'
|
|
218
212
|
},
|
|
219
213
|
children: value && renderValue(value)
|
|
220
|
-
}) : null, /*#__PURE__*/
|
|
214
|
+
}) : null, /*#__PURE__*/jsx(BaseInput, {
|
|
221
215
|
id: id,
|
|
222
216
|
ref: labelInputRef,
|
|
223
217
|
readOnly: true,
|
|
@@ -229,7 +223,7 @@ const SearchSelectInput = ({
|
|
|
229
223
|
},
|
|
230
224
|
placeholder: isVisibleValueExist ? '' : placeholder
|
|
231
225
|
})]
|
|
232
|
-
}), /*#__PURE__*/
|
|
226
|
+
}), /*#__PURE__*/jsx(View, {
|
|
233
227
|
sx: {
|
|
234
228
|
position: 'absolute',
|
|
235
229
|
top: '50%',
|
|
@@ -237,12 +231,12 @@ const SearchSelectInput = ({
|
|
|
237
231
|
right: 4,
|
|
238
232
|
pointerEvents: 'none'
|
|
239
233
|
},
|
|
240
|
-
children: typeof TrailingVisual !== 'string' &&
|
|
241
|
-
icon:
|
|
234
|
+
children: typeof TrailingVisual !== 'string' && isValidElementType(TrailingVisual) ? /*#__PURE__*/jsx(TrailingVisual, {}) : TrailingVisual ? TrailingVisual : /*#__PURE__*/jsx(StyledIcon, {
|
|
235
|
+
icon: ChevronDownIcon,
|
|
242
236
|
color: disabled ? 'icon/disabled' : 'icon/neutral/bolder',
|
|
243
237
|
size: 16
|
|
244
238
|
})
|
|
245
|
-
}), /*#__PURE__*/
|
|
239
|
+
}), /*#__PURE__*/jsx(BaseInput, {
|
|
246
240
|
ref: e => {
|
|
247
241
|
isFunction(ref) ? ref(e) : null;
|
|
248
242
|
valueInputRef.current = e;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { isNullable } from '
|
|
1
|
+
import { isNullable } from '@teamturing/utils';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import {
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
const SelectOption = ({
|
|
6
6
|
children: propChildren,
|
|
7
7
|
...props
|
|
8
8
|
}) => {
|
|
9
9
|
const children = isNullable(propChildren) ? props.label : propChildren;
|
|
10
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/jsx(BaseSelectOption, {
|
|
11
11
|
...props,
|
|
12
12
|
children: children
|
|
13
13
|
});
|
package/esm/core/Select/index.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
+
import { ChevronDownIcon } from '@teamturing/icons';
|
|
2
|
+
import { forcePixelValue, isNullable, isFunction } from '@teamturing/utils';
|
|
1
3
|
import { forwardRef, useState, useEffect } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
|
|
4
|
-
import { isFunction } from '../../packages/utils/esm/isFunction.js';
|
|
5
|
-
import { isNullable } from '../../packages/utils/esm/isNullable.js';
|
|
6
|
-
import { r as reactIsExports } from '../../node_modules/react-is/index.js';
|
|
4
|
+
import { isValidElementType } from 'react-is';
|
|
7
5
|
import styled, { css } from 'styled-components';
|
|
8
6
|
import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
|
|
9
7
|
import StyledIcon from '../StyledIcon/index.js';
|
|
10
8
|
import View from '../View/index.js';
|
|
11
9
|
import SelectOption from './SelectOption.js';
|
|
12
|
-
import {
|
|
10
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
11
|
|
|
14
12
|
const Select = ({
|
|
15
13
|
children,
|
|
@@ -31,13 +29,13 @@ const Select = ({
|
|
|
31
29
|
setIsValueEmpty(selectRef.current.value === PLACEHOLDER_VALUE);
|
|
32
30
|
}
|
|
33
31
|
}, [selectRef.current]);
|
|
34
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/jsxs(SelectWrapper, {
|
|
35
33
|
disabled: disabled,
|
|
36
34
|
onClick: focusSelect,
|
|
37
35
|
hasLeadingVisual: !isNullable(LeadingVisual),
|
|
38
36
|
validationStatus: validationStatus,
|
|
39
37
|
isValueEmpty: isValueEmpty,
|
|
40
|
-
children: [/*#__PURE__*/
|
|
38
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
41
39
|
sx: {
|
|
42
40
|
'flexShrink': 0,
|
|
43
41
|
'fontSize': 'xxs',
|
|
@@ -50,8 +48,8 @@ const Select = ({
|
|
|
50
48
|
color: 'icon/neutral/bold'
|
|
51
49
|
}
|
|
52
50
|
},
|
|
53
|
-
children: typeof LeadingVisual !== 'string' &&
|
|
54
|
-
}), /*#__PURE__*/
|
|
51
|
+
children: typeof LeadingVisual !== 'string' && isValidElementType(LeadingVisual) ? /*#__PURE__*/jsx(LeadingVisual, {}) : LeadingVisual
|
|
52
|
+
}), /*#__PURE__*/jsxs(BaseSelect, {
|
|
55
53
|
ref: e => {
|
|
56
54
|
isFunction(ref) ? ref(e) : null;
|
|
57
55
|
selectRef.current = e;
|
|
@@ -69,12 +67,12 @@ const Select = ({
|
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
},
|
|
72
|
-
children: [/*#__PURE__*/
|
|
70
|
+
children: [/*#__PURE__*/jsx(SelectOption, {
|
|
73
71
|
label: placeholder,
|
|
74
72
|
value: PLACEHOLDER_VALUE,
|
|
75
73
|
disabled: disabledPlaceholderOption
|
|
76
74
|
}), children]
|
|
77
|
-
}), /*#__PURE__*/
|
|
75
|
+
}), /*#__PURE__*/jsx(StyledIcon, {
|
|
78
76
|
sx: {
|
|
79
77
|
position: 'absolute',
|
|
80
78
|
top: '50%',
|
|
@@ -82,7 +80,7 @@ const Select = ({
|
|
|
82
80
|
right: 4,
|
|
83
81
|
pointerEvents: 'none'
|
|
84
82
|
},
|
|
85
|
-
icon:
|
|
83
|
+
icon: ChevronDownIcon,
|
|
86
84
|
color: disabled ? 'icon/disabled' : 'icon/neutral/bolder',
|
|
87
85
|
size: 16
|
|
88
86
|
})]
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import SvgProgressGradient from '../../packages/icons/esm/ProgressGradient.js';
|
|
1
|
+
import { ProgressGradientIcon } from '@teamturing/icons';
|
|
3
2
|
import styled, { keyframes } from 'styled-components';
|
|
4
3
|
|
|
5
4
|
const spin = keyframes`
|
|
@@ -10,7 +9,7 @@ const spin = keyframes`
|
|
|
10
9
|
transform: rotate(360deg);
|
|
11
10
|
}
|
|
12
11
|
`;
|
|
13
|
-
const Spinner = styled(
|
|
12
|
+
const Spinner = styled(ProgressGradientIcon)`
|
|
14
13
|
color: ${({
|
|
15
14
|
theme
|
|
16
15
|
}) => theme.colors['icon/neutral']};
|
package/esm/core/Stack/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { forcePixelValue } from '
|
|
1
|
+
import { forcePixelValue } from '@teamturing/utils';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
5
5
|
import { sx } from '../../utils/styled-system/index.js';
|
|
6
6
|
import View from '../View/index.js';
|
|
7
|
-
import {
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
9
9
|
|
|
10
10
|
const Stack = /*#__PURE__*/forwardRef(({
|
|
@@ -14,7 +14,7 @@ const Stack = /*#__PURE__*/forwardRef(({
|
|
|
14
14
|
alignItems = 'center',
|
|
15
15
|
sx,
|
|
16
16
|
...props
|
|
17
|
-
}, ref) => /*#__PURE__*/
|
|
17
|
+
}, ref) => /*#__PURE__*/jsx(BaseStack, {
|
|
18
18
|
ref: ref,
|
|
19
19
|
alignItems: alignItems,
|
|
20
20
|
gapX: gapX,
|
|
@@ -57,7 +57,7 @@ const BaseStack = styled(View)({
|
|
|
57
57
|
const Item = ({
|
|
58
58
|
children,
|
|
59
59
|
...props
|
|
60
|
-
}) => /*#__PURE__*/
|
|
60
|
+
}) => /*#__PURE__*/jsx(View, {
|
|
61
61
|
...props,
|
|
62
62
|
children: children
|
|
63
63
|
});
|