@teamturing/react-kit 2.51.3 → 2.51.4
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/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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
import View from '../View/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
const StyledIcon = /*#__PURE__*/forwardRef(({
|
|
6
6
|
icon: Icon,
|
|
7
7
|
sx,
|
|
8
8
|
...props
|
|
9
|
-
}, ref) => /*#__PURE__*/
|
|
9
|
+
}, ref) => /*#__PURE__*/jsx(View, {
|
|
10
10
|
ref: ref,
|
|
11
11
|
...props,
|
|
12
12
|
color: props.color,
|
|
@@ -18,7 +18,7 @@ const StyledIcon = /*#__PURE__*/forwardRef(({
|
|
|
18
18
|
},
|
|
19
19
|
...sx
|
|
20
20
|
},
|
|
21
|
-
children: /*#__PURE__*/
|
|
21
|
+
children: /*#__PURE__*/jsx(Icon, {})
|
|
22
22
|
}));
|
|
23
23
|
|
|
24
24
|
export { StyledIcon as default };
|
package/esm/core/Switch/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 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 Switch = ({
|
|
9
9
|
checked,
|
|
@@ -11,7 +11,7 @@ const Switch = ({
|
|
|
11
11
|
...props
|
|
12
12
|
}, ref) => {
|
|
13
13
|
const checkboxRef = useProvidedOrCreatedRef(ref);
|
|
14
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/jsx(BaseSwitch, {
|
|
15
15
|
ref: checkboxRef,
|
|
16
16
|
checked: checked,
|
|
17
17
|
validationStatus: validationStatus,
|
package/esm/core/Tab/TabItem.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { scrollIntoView } from '
|
|
1
|
+
import { scrollIntoView } from '@teamturing/utils';
|
|
2
2
|
import { useRef, useContext } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
5
5
|
import View from '../View/index.js';
|
|
6
6
|
import UnstyledButton from '../_UnstyledButton.js';
|
|
7
7
|
import { TabContext } from './index.js';
|
|
8
|
-
import {
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
10
10
|
|
|
11
11
|
const TabItem = ({
|
|
@@ -37,7 +37,7 @@ const TabItem = ({
|
|
|
37
37
|
}
|
|
38
38
|
onClick?.(e);
|
|
39
39
|
};
|
|
40
|
-
return /*#__PURE__*/
|
|
40
|
+
return /*#__PURE__*/jsx(BaseTabItem, {
|
|
41
41
|
type: 'button',
|
|
42
42
|
role: 'tab',
|
|
43
43
|
ref: ref,
|
|
@@ -46,7 +46,7 @@ const TabItem = ({
|
|
|
46
46
|
leadingIcon: LeadingIcon,
|
|
47
47
|
selected: selected,
|
|
48
48
|
onClick: handleClick,
|
|
49
|
-
children: /*#__PURE__*/
|
|
49
|
+
children: /*#__PURE__*/jsxs(View, {
|
|
50
50
|
sx: {
|
|
51
51
|
display: 'flex',
|
|
52
52
|
flexDirection: 'row',
|
|
@@ -54,7 +54,7 @@ const TabItem = ({
|
|
|
54
54
|
justifyContent: 'center',
|
|
55
55
|
columnGap: 1
|
|
56
56
|
},
|
|
57
|
-
children: [LeadingIcon ? /*#__PURE__*/
|
|
57
|
+
children: [LeadingIcon ? /*#__PURE__*/jsx(LeadingIcon, {}) : null, /*#__PURE__*/jsx(View, {
|
|
58
58
|
children: children
|
|
59
59
|
})]
|
|
60
60
|
})
|
package/esm/core/Tab/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
import { ChevronLeftIcon, ChevronRightIcon } from '@teamturing/icons';
|
|
2
|
+
import { forcePixelValue } from '@teamturing/utils';
|
|
3
|
+
import throttle from 'lodash.throttle';
|
|
1
4
|
import { createContext, useRef, useState, useEffect } 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 throttle from '../../node_modules/lodash.throttle/index.js';
|
|
6
5
|
import { useTheme } from 'styled-components';
|
|
7
6
|
import useResize from '../../hook/useResize.js';
|
|
8
7
|
import IconButton from '../IconButton/index.js';
|
|
9
8
|
import View from '../View/index.js';
|
|
10
9
|
import TabItem from './TabItem.js';
|
|
11
|
-
import {
|
|
10
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
11
|
|
|
13
12
|
const TabContext = /*#__PURE__*/createContext({});
|
|
14
13
|
const Tab = ({
|
|
@@ -49,15 +48,15 @@ const Tab = ({
|
|
|
49
48
|
handleScrollButtonVisibility();
|
|
50
49
|
}, []);
|
|
51
50
|
useResize(handleScrollButtonVisibility);
|
|
52
|
-
return /*#__PURE__*/
|
|
51
|
+
return /*#__PURE__*/jsx(TabContext.Provider, {
|
|
53
52
|
value: {
|
|
54
53
|
variant,
|
|
55
54
|
size,
|
|
56
55
|
containerRef: rootRef
|
|
57
56
|
},
|
|
58
|
-
children: /*#__PURE__*/
|
|
57
|
+
children: /*#__PURE__*/jsxs(View, {
|
|
59
58
|
position: 'relative',
|
|
60
|
-
children: [/*#__PURE__*/
|
|
59
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
61
60
|
ref: rootRef,
|
|
62
61
|
role: 'tablist',
|
|
63
62
|
sx: {
|
|
@@ -74,10 +73,10 @@ const Tab = ({
|
|
|
74
73
|
},
|
|
75
74
|
onScroll: throttle(handleScrollButtonVisibility, 150),
|
|
76
75
|
children: children
|
|
77
|
-
}), /*#__PURE__*/
|
|
76
|
+
}), /*#__PURE__*/jsxs(View, {
|
|
78
77
|
display: ['none', 'initial', 'initial'],
|
|
79
|
-
children: [isLeftButtonVisible ? /*#__PURE__*/
|
|
80
|
-
children: [/*#__PURE__*/
|
|
78
|
+
children: [isLeftButtonVisible ? /*#__PURE__*/jsxs(Fragment, {
|
|
79
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
81
80
|
sx: {
|
|
82
81
|
position: 'absolute',
|
|
83
82
|
top: 0,
|
|
@@ -88,7 +87,7 @@ const Tab = ({
|
|
|
88
87
|
background: `linear-gradient(${theme.gradients['overlay/floating/toright']})`,
|
|
89
88
|
pointerEvents: 'none'
|
|
90
89
|
}
|
|
91
|
-
}), /*#__PURE__*/
|
|
90
|
+
}), /*#__PURE__*/jsx(View, {
|
|
92
91
|
sx: {
|
|
93
92
|
position: 'absolute',
|
|
94
93
|
display: 'flex',
|
|
@@ -98,15 +97,15 @@ const Tab = ({
|
|
|
98
97
|
bottom: 0,
|
|
99
98
|
backgroundColor: theme.colors.surface
|
|
100
99
|
},
|
|
101
|
-
children: /*#__PURE__*/
|
|
100
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
102
101
|
size: 's',
|
|
103
102
|
variant: 'plain-bold',
|
|
104
|
-
icon:
|
|
103
|
+
icon: ChevronLeftIcon,
|
|
105
104
|
onClick: handleLeftButtonClick
|
|
106
105
|
})
|
|
107
106
|
})]
|
|
108
|
-
}) : null, isRightButtonVisible ? /*#__PURE__*/
|
|
109
|
-
children: [/*#__PURE__*/
|
|
107
|
+
}) : null, isRightButtonVisible ? /*#__PURE__*/jsxs(Fragment, {
|
|
108
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
110
109
|
sx: {
|
|
111
110
|
position: 'absolute',
|
|
112
111
|
top: 0,
|
|
@@ -117,7 +116,7 @@ const Tab = ({
|
|
|
117
116
|
background: `linear-gradient(${theme.gradients['overlay/floating/toleft']})`,
|
|
118
117
|
pointerEvents: 'none'
|
|
119
118
|
}
|
|
120
|
-
}), /*#__PURE__*/
|
|
119
|
+
}), /*#__PURE__*/jsx(View, {
|
|
121
120
|
sx: {
|
|
122
121
|
position: 'absolute',
|
|
123
122
|
display: 'flex',
|
|
@@ -127,10 +126,10 @@ const Tab = ({
|
|
|
127
126
|
bottom: 0,
|
|
128
127
|
backgroundColor: theme.colors.surface
|
|
129
128
|
},
|
|
130
|
-
children: /*#__PURE__*/
|
|
129
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
131
130
|
size: 's',
|
|
132
131
|
variant: 'plain-bold',
|
|
133
|
-
icon:
|
|
132
|
+
icon: ChevronRightIcon,
|
|
134
133
|
onClick: handleRightButtonClick
|
|
135
134
|
})
|
|
136
135
|
})]
|
|
@@ -1,20 +1,20 @@
|
|
|
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 { 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
|
|
|
8
8
|
const TextInputTrailingAction = ({
|
|
9
9
|
icon: Icon,
|
|
10
10
|
disabled,
|
|
11
11
|
...props
|
|
12
|
-
}, ref) => /*#__PURE__*/
|
|
12
|
+
}, ref) => /*#__PURE__*/jsx(BaseTextInputTrailingAction, {
|
|
13
13
|
ref: ref,
|
|
14
14
|
...props,
|
|
15
15
|
disabled: disabled,
|
|
16
16
|
"aria-disabled": disabled,
|
|
17
|
-
children: /*#__PURE__*/
|
|
17
|
+
children: /*#__PURE__*/jsx(Icon, {})
|
|
18
18
|
});
|
|
19
19
|
const BaseTextInputTrailingAction = styled(UnstyledButton)`
|
|
20
20
|
display: inline-flex;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { forcePixelValue } from '
|
|
2
|
-
import { isFunction } from '../../packages/utils/esm/isFunction.js';
|
|
3
|
-
import { isNullable } from '../../packages/utils/esm/isNullable.js';
|
|
1
|
+
import { forcePixelValue, isNullable, isFunction } from '@teamturing/utils';
|
|
4
2
|
import { forwardRef, cloneElement } from 'react';
|
|
5
|
-
import {
|
|
3
|
+
import { isValidElementType } from 'react-is';
|
|
6
4
|
import styled, { css, useTheme } from 'styled-components';
|
|
7
5
|
import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
|
|
8
6
|
import { sx } from '../../utils/styled-system/index.js';
|
|
9
7
|
import View from '../View/index.js';
|
|
10
8
|
import TextInputTrailingAction from './TextInputTrailingAction.js';
|
|
11
|
-
import {
|
|
9
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
12
10
|
|
|
13
11
|
const TextInput = ({
|
|
14
12
|
type = 'text',
|
|
@@ -25,7 +23,7 @@ const TextInput = ({
|
|
|
25
23
|
const focusInput = () => {
|
|
26
24
|
inputRef.current?.focus();
|
|
27
25
|
};
|
|
28
|
-
return /*#__PURE__*/
|
|
26
|
+
return /*#__PURE__*/jsxs(TextInputWrapper, {
|
|
29
27
|
disabled: disabled,
|
|
30
28
|
onClick: focusInput,
|
|
31
29
|
hasLeadingVisual: !isNullable(LeadingVisual),
|
|
@@ -33,7 +31,7 @@ const TextInput = ({
|
|
|
33
31
|
hasTrailingAction: !isNullable(trailingAction),
|
|
34
32
|
validationStatus: validationStatus,
|
|
35
33
|
sx: sx,
|
|
36
|
-
children: [/*#__PURE__*/
|
|
34
|
+
children: [/*#__PURE__*/jsx(View, {
|
|
37
35
|
sx: {
|
|
38
36
|
'flexShrink': 0,
|
|
39
37
|
'fontSize': 'xxs',
|
|
@@ -47,8 +45,8 @@ const TextInput = ({
|
|
|
47
45
|
}
|
|
48
46
|
},
|
|
49
47
|
className: 'text_input__leading_visual',
|
|
50
|
-
children: typeof LeadingVisual !== 'string' &&
|
|
51
|
-
}), /*#__PURE__*/
|
|
48
|
+
children: typeof LeadingVisual !== 'string' && isValidElementType(LeadingVisual) ? /*#__PURE__*/jsx(LeadingVisual, {}) : LeadingVisual
|
|
49
|
+
}), /*#__PURE__*/jsx(BaseInput, {
|
|
52
50
|
className: 'text_input__base_input',
|
|
53
51
|
ref: e => {
|
|
54
52
|
isFunction(ref) ? ref(e) : null;
|
|
@@ -57,7 +55,7 @@ const TextInput = ({
|
|
|
57
55
|
type: type,
|
|
58
56
|
disabled: disabled,
|
|
59
57
|
...props
|
|
60
|
-
}), /*#__PURE__*/
|
|
58
|
+
}), /*#__PURE__*/jsxs(View, {
|
|
61
59
|
sx: {
|
|
62
60
|
'display': 'flex',
|
|
63
61
|
'alignItems': 'center',
|
|
@@ -74,7 +72,7 @@ const TextInput = ({
|
|
|
74
72
|
}
|
|
75
73
|
},
|
|
76
74
|
className: 'text_input__trailing_visual',
|
|
77
|
-
children: [typeof TrailingVisual !== 'string' &&
|
|
75
|
+
children: [typeof TrailingVisual !== 'string' && isValidElementType(TrailingVisual) ? /*#__PURE__*/jsx(TrailingVisual, {}) : TrailingVisual, trailingAction ? /*#__PURE__*/cloneElement(trailingAction, {
|
|
78
76
|
disabled: trailingAction.props.disabled || disabled
|
|
79
77
|
}) : null]
|
|
80
78
|
})]
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { commaizeNumber } from '
|
|
2
|
-
import
|
|
3
|
-
import { isFunction } from '../../packages/utils/esm/isFunction.js';
|
|
4
|
-
import toArray from '../../node_modules/lodash.toarray/index.js';
|
|
1
|
+
import { forcePixelValue, isFunction, commaizeNumber } from '@teamturing/utils';
|
|
2
|
+
import toArray from 'lodash.toarray';
|
|
5
3
|
import { forwardRef, useState, useEffect } from 'react';
|
|
6
4
|
import ReactTextareaAutosize from 'react-textarea-autosize';
|
|
7
5
|
import styled, { css } from 'styled-components';
|
|
8
6
|
import useProvidedOrCreatedRef from '../../hook/useProvidedOrCreatedRef.js';
|
|
9
|
-
import {
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
8
|
|
|
11
9
|
const Textarea = /*#__PURE__*/forwardRef(({
|
|
12
10
|
validationStatus,
|
|
@@ -31,11 +29,11 @@ const Textarea = /*#__PURE__*/forwardRef(({
|
|
|
31
29
|
setCount(getTextareaLength(inputRef.current.value));
|
|
32
30
|
}
|
|
33
31
|
}, [ref]);
|
|
34
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/jsxs(TextareaWrapper, {
|
|
35
33
|
disabled: disabled,
|
|
36
34
|
onClick: focusInput,
|
|
37
35
|
validationStatus: validationStatus,
|
|
38
|
-
children: [/*#__PURE__*/
|
|
36
|
+
children: [/*#__PURE__*/jsx(ReactTextareaAutosize, {
|
|
39
37
|
minRows: 1,
|
|
40
38
|
...props,
|
|
41
39
|
ref: e => {
|
|
@@ -44,7 +42,7 @@ const Textarea = /*#__PURE__*/forwardRef(({
|
|
|
44
42
|
},
|
|
45
43
|
disabled: disabled,
|
|
46
44
|
onChange: handleChange
|
|
47
|
-
}), /*#__PURE__*/
|
|
45
|
+
}), /*#__PURE__*/jsx(TextareaCount, {
|
|
48
46
|
children: renderCount(count, {
|
|
49
47
|
validationStatus,
|
|
50
48
|
disabled,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ThemeProvider as ThemeProvider$1 } from 'styled-components';
|
|
2
2
|
import theme from '../../theme/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
const ThemeProvider = ({
|
|
6
6
|
theme: propTheme,
|
|
7
7
|
...props
|
|
8
8
|
}) => {
|
|
9
9
|
const theme$1 = propTheme ?? theme;
|
|
10
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/jsx(ThemeProvider$1, {
|
|
11
11
|
theme: theme$1,
|
|
12
12
|
...props
|
|
13
13
|
});
|
package/esm/core/Toast/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import SvgCheckInCircle from '../../packages/icons/esm/CheckInCircle.js';
|
|
3
|
-
import SvgExclamationPointInCircle from '../../packages/icons/esm/ExclamationPointInCircle.js';
|
|
1
|
+
import { CheckInCircleIcon, ExclamationPointInCircleIcon } from '@teamturing/icons';
|
|
4
2
|
import styled from 'styled-components';
|
|
5
3
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
6
|
-
import {
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
5
|
import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
8
6
|
|
|
9
7
|
const Toast = ({
|
|
@@ -12,13 +10,13 @@ const Toast = ({
|
|
|
12
10
|
children
|
|
13
11
|
}) => {
|
|
14
12
|
const IconByVariant = {
|
|
15
|
-
success:
|
|
16
|
-
warning:
|
|
13
|
+
success: CheckInCircleIcon,
|
|
14
|
+
warning: ExclamationPointInCircleIcon
|
|
17
15
|
}[variant];
|
|
18
|
-
return /*#__PURE__*/
|
|
16
|
+
return /*#__PURE__*/jsxs(BaseToast, {
|
|
19
17
|
variant: variant,
|
|
20
18
|
resizing: resizing,
|
|
21
|
-
children: [/*#__PURE__*/
|
|
19
|
+
children: [/*#__PURE__*/jsx(IconByVariant, {}), children]
|
|
22
20
|
});
|
|
23
21
|
};
|
|
24
22
|
const BaseToast = styled.div(({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useMergeRefs, FloatingPortal, FloatingArrow } from '
|
|
2
|
-
import { forcePixelValue } from '
|
|
1
|
+
import { useMergeRefs, FloatingPortal, FloatingArrow } from '@floating-ui/react';
|
|
2
|
+
import { forcePixelValue } from '@teamturing/utils';
|
|
3
3
|
import { forwardRef, isValidElement, cloneElement } from 'react';
|
|
4
4
|
import styled, { keyframes, useTheme } from 'styled-components';
|
|
5
5
|
import { sx } from '../../utils/styled-system/index.js';
|
|
6
6
|
import { useTooltip } from './useTooltip.js';
|
|
7
7
|
import { TooltipContext, useTooltipContext } from './useTooltipContext.js';
|
|
8
|
-
import {
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
function BaseTooltip({
|
|
11
11
|
children,
|
|
12
12
|
...options
|
|
13
13
|
}) {
|
|
14
14
|
const tooltip = useTooltip(options);
|
|
15
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/jsx(TooltipContext.Provider, {
|
|
16
16
|
value: tooltip,
|
|
17
17
|
children: children
|
|
18
18
|
});
|
|
@@ -32,7 +32,7 @@ const BaseTooltipTrigger = /*#__PURE__*/forwardRef(function TooltipTrigger({
|
|
|
32
32
|
'data-state': context.open ? 'open' : 'closed'
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
|
-
return /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/jsx("button", {
|
|
36
36
|
ref: ref,
|
|
37
37
|
"data-state": context.open ? 'open' : 'closed',
|
|
38
38
|
...context.getReferenceProps(props),
|
|
@@ -47,15 +47,15 @@ const BaseTooltipContent = /*#__PURE__*/forwardRef(function TooltipContent({
|
|
|
47
47
|
const context = useTooltipContext();
|
|
48
48
|
const ref = useMergeRefs([context.refs.setFloating, propRef]);
|
|
49
49
|
if (!context.open) return null;
|
|
50
|
-
return /*#__PURE__*/
|
|
51
|
-
children: /*#__PURE__*/
|
|
50
|
+
return /*#__PURE__*/jsx(FloatingPortal, {
|
|
51
|
+
children: /*#__PURE__*/jsxs(StyledBaseTooltipContent, {
|
|
52
52
|
ref: ref,
|
|
53
53
|
style: {
|
|
54
54
|
...context.floatingStyles,
|
|
55
55
|
...style
|
|
56
56
|
},
|
|
57
57
|
...context.getFloatingProps(props),
|
|
58
|
-
children: [props.children, /*#__PURE__*/
|
|
58
|
+
children: [props.children, /*#__PURE__*/jsx(FloatingArrow, {
|
|
59
59
|
ref: context.arrowRef,
|
|
60
60
|
context: context,
|
|
61
61
|
width: 10,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseTooltip, BaseTooltipTrigger, BaseTooltipContent } from './BaseTooltip.js';
|
|
2
|
-
import {
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
const Tooltip = ({
|
|
5
5
|
children,
|
|
@@ -18,13 +18,13 @@ const Tooltip = ({
|
|
|
18
18
|
'left': 'left',
|
|
19
19
|
'top-left': 'top-end'
|
|
20
20
|
}[direction];
|
|
21
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/jsxs(BaseTooltip, {
|
|
22
22
|
placement: directionToPlacement,
|
|
23
23
|
mouseOnly: mouseOnly,
|
|
24
|
-
children: [/*#__PURE__*/
|
|
24
|
+
children: [/*#__PURE__*/jsx(BaseTooltipTrigger, {
|
|
25
25
|
className: 'tooltip__tooltip_trigger',
|
|
26
26
|
children: children
|
|
27
|
-
}), !disabled ? /*#__PURE__*/
|
|
27
|
+
}), !disabled ? /*#__PURE__*/jsx(BaseTooltipContent, {
|
|
28
28
|
className: 'tooltip__tooltip_content',
|
|
29
29
|
children: text
|
|
30
30
|
}) : null]
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { useFloating, useHover, useFocus, useDismiss, useRole, useInteractions } from '
|
|
1
|
+
import { useFloating, autoUpdate, offset, flip, shift, arrow, useHover, useFocus, useDismiss, useRole, useInteractions } from '@floating-ui/react';
|
|
2
2
|
import { useState, useRef, useMemo } from 'react';
|
|
3
3
|
import { useTheme } from 'styled-components';
|
|
4
|
-
import { autoUpdate } from '../../node_modules/@floating-ui/dom/dist/floating-ui.dom.js';
|
|
5
|
-
import { offset, flip, shift, arrow } from '../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js';
|
|
6
4
|
|
|
7
5
|
function useTooltip({
|
|
8
6
|
initialOpen = false,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import breakpoints from '
|
|
2
|
-
import '../../packages/token-studio/esm/token/typography/index.js';
|
|
1
|
+
import { breakpoints } from '@teamturing/token-studio';
|
|
3
2
|
import useMediaQuery from '../../hook/useMediaQuery.js';
|
|
4
3
|
import SingleColumnLayout from '../Layout/SingleColumnLayout/index.js';
|
|
5
4
|
import ChipGroupView from '../View/ChipGroupView/index.js';
|
|
@@ -8,7 +7,7 @@ import HorizontalDividerView from '../View/HorizontalDividerView/index.js';
|
|
|
8
7
|
import IconView from '../View/IconView/index.js';
|
|
9
8
|
import ImageView from '../View/ImageView/index.js';
|
|
10
9
|
import TextView from '../View/TextView/index.js';
|
|
11
|
-
import {
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
12
11
|
|
|
13
12
|
const EnigmaUI = ({
|
|
14
13
|
section: {
|
|
@@ -28,7 +27,7 @@ const EnigmaUI = ({
|
|
|
28
27
|
const viewComponentsObject = Object.fromEntries(views.map(view => {
|
|
29
28
|
return [view.id, getViewComponent(view)];
|
|
30
29
|
}));
|
|
31
|
-
return /*#__PURE__*/
|
|
30
|
+
return /*#__PURE__*/jsx(LayoutComponent, {
|
|
32
31
|
layout: layout,
|
|
33
32
|
viewsObject: viewsObject,
|
|
34
33
|
viewComponentsObject: viewComponentsObject
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import ItemList from '../../../core/ItemList/index.js';
|
|
2
2
|
import Space from '../../../core/Space/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
const SingleColumnLayout = ({
|
|
6
6
|
layout,
|
|
7
7
|
viewsObject,
|
|
8
8
|
viewComponentsObject
|
|
9
|
-
}) => /*#__PURE__*/
|
|
9
|
+
}) => /*#__PURE__*/jsx(ItemList, {
|
|
10
10
|
items: layout.main,
|
|
11
11
|
renderItem: ({
|
|
12
12
|
viewContainerId
|
|
13
13
|
}) => {
|
|
14
14
|
const view = viewsObject[viewContainerId];
|
|
15
15
|
const ViewComponent = viewComponentsObject[viewContainerId];
|
|
16
|
-
return ViewComponent ? /*#__PURE__*/
|
|
16
|
+
return ViewComponent ? /*#__PURE__*/jsx(ViewComponent, {
|
|
17
17
|
view: view
|
|
18
18
|
}) : null;
|
|
19
19
|
},
|
|
20
20
|
renderItemWrapper: (children, {
|
|
21
21
|
viewContainerId,
|
|
22
22
|
spaceProps
|
|
23
|
-
}, i) => /*#__PURE__*/
|
|
23
|
+
}, i) => /*#__PURE__*/jsx(Space, {
|
|
24
24
|
...spaceProps,
|
|
25
25
|
children: children
|
|
26
26
|
}, [viewContainerId, `${i}`].join('-'))
|
|
@@ -2,7 +2,7 @@ import Chip from '../../../core/Chip/index.js';
|
|
|
2
2
|
import ItemList from '../../../core/ItemList/index.js';
|
|
3
3
|
import Space from '../../../core/Space/index.js';
|
|
4
4
|
import Stack from '../../../core/Stack/index.js';
|
|
5
|
-
import {
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
const ChipGroupView = ({
|
|
8
8
|
view: {
|
|
@@ -14,17 +14,17 @@ const ChipGroupView = ({
|
|
|
14
14
|
},
|
|
15
15
|
spaceProps
|
|
16
16
|
}
|
|
17
|
-
}) => /*#__PURE__*/
|
|
17
|
+
}) => /*#__PURE__*/jsx(Space, {
|
|
18
18
|
...spaceProps,
|
|
19
|
-
children: /*#__PURE__*/
|
|
19
|
+
children: /*#__PURE__*/jsx(Stack, {
|
|
20
20
|
gapX: chipGroupProps.gapX,
|
|
21
21
|
gapY: chipGroupProps.gapY,
|
|
22
|
-
children: /*#__PURE__*/
|
|
22
|
+
children: /*#__PURE__*/jsx(ItemList, {
|
|
23
23
|
items: chips,
|
|
24
24
|
renderItem: ({
|
|
25
25
|
text,
|
|
26
26
|
variant
|
|
27
|
-
}) => /*#__PURE__*/
|
|
27
|
+
}) => /*#__PURE__*/jsx(Chip, {
|
|
28
28
|
size: chipGroupProps.size,
|
|
29
29
|
variant: variant,
|
|
30
30
|
children: text
|
|
@@ -32,7 +32,7 @@ const ChipGroupView = ({
|
|
|
32
32
|
renderItemWrapper: (children, {
|
|
33
33
|
text,
|
|
34
34
|
variant
|
|
35
|
-
}, i) => /*#__PURE__*/
|
|
35
|
+
}, i) => /*#__PURE__*/jsx(Stack.Item, {
|
|
36
36
|
children: children
|
|
37
37
|
}, `${text}-${variant}-${i}`)
|
|
38
38
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Grid from '../../../core/Grid/index.js';
|
|
2
2
|
import Space from '../../../core/Space/index.js';
|
|
3
3
|
import { getViewComponent } from '../../EnigmaUI/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
const GridView = ({
|
|
7
7
|
view: {
|
|
@@ -9,9 +9,9 @@ const GridView = ({
|
|
|
9
9
|
gridProps,
|
|
10
10
|
spaceProps
|
|
11
11
|
}
|
|
12
|
-
}) => /*#__PURE__*/
|
|
12
|
+
}) => /*#__PURE__*/jsx(Space, {
|
|
13
13
|
...spaceProps,
|
|
14
|
-
children: /*#__PURE__*/
|
|
14
|
+
children: /*#__PURE__*/jsx(Grid, {
|
|
15
15
|
...gridProps,
|
|
16
16
|
children: units.map(({
|
|
17
17
|
views: viewContainers,
|
|
@@ -21,11 +21,11 @@ const GridView = ({
|
|
|
21
21
|
const unitKey = viewContainers.map(({
|
|
22
22
|
id
|
|
23
23
|
}) => id).join(unitKeySeperator);
|
|
24
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/jsx(Grid.Unit, {
|
|
25
25
|
...unitProps,
|
|
26
26
|
children: viewContainers.map(viewContainer => {
|
|
27
27
|
const ViewComponent = getViewComponent(viewContainer);
|
|
28
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/jsx(ViewComponent, {
|
|
29
29
|
view: viewContainer.view
|
|
30
30
|
}, viewContainer.id);
|
|
31
31
|
})
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import HorizontalDivider from '../../../core/HorizontalDivider/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
const HorizontalDividerView = ({
|
|
5
5
|
view: {
|
|
6
6
|
horizontalDividerProps,
|
|
7
7
|
spaceProps
|
|
8
8
|
}
|
|
9
|
-
}) => /*#__PURE__*/
|
|
9
|
+
}) => /*#__PURE__*/jsx(HorizontalDivider, {
|
|
10
10
|
...horizontalDividerProps,
|
|
11
11
|
sx: {
|
|
12
12
|
...spaceProps
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as icons from '@teamturing/icons';
|
|
2
2
|
import StyledIcon from '../../../core/StyledIcon/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
const IconView = ({
|
|
6
6
|
view: {
|
|
@@ -11,8 +11,8 @@ const IconView = ({
|
|
|
11
11
|
},
|
|
12
12
|
spaceProps
|
|
13
13
|
}
|
|
14
|
-
}) => /*#__PURE__*/
|
|
15
|
-
icon:
|
|
14
|
+
}) => /*#__PURE__*/jsx(StyledIcon, {
|
|
15
|
+
icon: icons[icon],
|
|
16
16
|
...iconProps,
|
|
17
17
|
sx: {
|
|
18
18
|
...spaceProps
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Image from '../../../core/Image/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
const ImageView = ({
|
|
5
5
|
view: {
|
|
6
6
|
spaceProps,
|
|
7
7
|
...props
|
|
8
8
|
}
|
|
9
|
-
}) => /*#__PURE__*/
|
|
9
|
+
}) => /*#__PURE__*/jsx(Image, {
|
|
10
10
|
loading: 'lazy',
|
|
11
11
|
display: 'block',
|
|
12
12
|
...props,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Text from '../../../core/Text/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
const TextView = ({
|
|
5
5
|
view: {
|
|
@@ -7,7 +7,7 @@ const TextView = ({
|
|
|
7
7
|
textProps,
|
|
8
8
|
spaceProps
|
|
9
9
|
}
|
|
10
|
-
}) => /*#__PURE__*/
|
|
10
|
+
}) => /*#__PURE__*/jsx(Text, {
|
|
11
11
|
...textProps,
|
|
12
12
|
sx: {
|
|
13
13
|
...spaceProps
|