revotech-ui-kit 0.0.10 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.ts +1 -0
- package/dist/rollup-plugin-html-noop.js +1 -0
- package/dist/sw.js +2 -0
- package/dist/sw.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/workbox-a523fd56.js +2 -0
- package/dist/workbox-a523fd56.js.map +1 -0
- package/package.json +23 -13
- package/dist/revotech-ui-kit.cjs +0 -2293
- package/dist/revotech-ui-kit.js +0 -5608
- package/dist/src/assets/icons/arrows.icon.d.ts +0 -1
- package/dist/src/assets/icons/arrows.icon.js +0 -20
- package/dist/src/assets/icons/arrows.icon.js.map +0 -1
- package/dist/src/assets/icons/index.d.ts +0 -3
- package/dist/src/assets/icons/index.js +0 -4
- package/dist/src/assets/icons/index.js.map +0 -1
- package/dist/src/assets/icons/search.icon.d.ts +0 -1
- package/dist/src/assets/icons/search.icon.js +0 -19
- package/dist/src/assets/icons/search.icon.js.map +0 -1
- package/dist/src/assets/icons/tick.icon.d.ts +0 -1
- package/dist/src/assets/icons/tick.icon.js +0 -20
- package/dist/src/assets/icons/tick.icon.js.map +0 -1
- package/dist/src/components/atoms/alert/alert-description.d.ts +0 -5
- package/dist/src/components/atoms/alert/alert-description.js +0 -18
- package/dist/src/components/atoms/alert/alert-description.js.map +0 -1
- package/dist/src/components/atoms/alert/alert-title.d.ts +0 -5
- package/dist/src/components/atoms/alert/alert-title.js +0 -20
- package/dist/src/components/atoms/alert/alert-title.js.map +0 -1
- package/dist/src/components/atoms/alert/alert.atom.d.ts +0 -15
- package/dist/src/components/atoms/alert/alert.atom.js +0 -55
- package/dist/src/components/atoms/alert/alert.atom.js.map +0 -1
- package/dist/src/components/atoms/alert/alert.stories.d.ts +0 -6
- package/dist/src/components/atoms/alert/alert.stories.js +0 -62
- package/dist/src/components/atoms/alert/alert.stories.js.map +0 -1
- package/dist/src/components/atoms/alert/alert.styles.d.ts +0 -4
- package/dist/src/components/atoms/alert/alert.styles.js +0 -21
- package/dist/src/components/atoms/alert/alert.styles.js.map +0 -1
- package/dist/src/components/atoms/alert/alert.types.d.ts +0 -1
- package/dist/src/components/atoms/alert/alert.types.js +0 -2
- package/dist/src/components/atoms/alert/alert.types.js.map +0 -1
- package/dist/src/components/atoms/badge/badge.atom.d.ts +0 -16
- package/dist/src/components/atoms/badge/badge.atom.js +0 -43
- package/dist/src/components/atoms/badge/badge.atom.js.map +0 -1
- package/dist/src/components/atoms/badge/badge.stories.d.ts +0 -6
- package/dist/src/components/atoms/badge/badge.stories.js +0 -110
- package/dist/src/components/atoms/badge/badge.stories.js.map +0 -1
- package/dist/src/components/atoms/badge/badge.style.d.ts +0 -3
- package/dist/src/components/atoms/badge/badge.style.js +0 -17
- package/dist/src/components/atoms/badge/badge.style.js.map +0 -1
- package/dist/src/components/atoms/badge/badge.type.d.ts +0 -1
- package/dist/src/components/atoms/badge/badge.type.js +0 -2
- package/dist/src/components/atoms/badge/badge.type.js.map +0 -1
- package/dist/src/components/atoms/button/button.atom.d.ts +0 -22
- package/dist/src/components/atoms/button/button.atom.js +0 -67
- package/dist/src/components/atoms/button/button.atom.js.map +0 -1
- package/dist/src/components/atoms/button/button.stories.d.ts +0 -6
- package/dist/src/components/atoms/button/button.stories.js +0 -204
- package/dist/src/components/atoms/button/button.stories.js.map +0 -1
- package/dist/src/components/atoms/button/button.style.d.ts +0 -4
- package/dist/src/components/atoms/button/button.style.js +0 -24
- package/dist/src/components/atoms/button/button.style.js.map +0 -1
- package/dist/src/components/atoms/button/button.type.d.ts +0 -3
- package/dist/src/components/atoms/button/button.type.js +0 -2
- package/dist/src/components/atoms/button/button.type.js.map +0 -1
- package/dist/src/components/atoms/card/card-content.d.ts +0 -5
- package/dist/src/components/atoms/card/card-content.js +0 -17
- package/dist/src/components/atoms/card/card-content.js.map +0 -1
- package/dist/src/components/atoms/card/card-description.d.ts +0 -5
- package/dist/src/components/atoms/card/card-description.js +0 -17
- package/dist/src/components/atoms/card/card-description.js.map +0 -1
- package/dist/src/components/atoms/card/card-footer.d.ts +0 -5
- package/dist/src/components/atoms/card/card-footer.js +0 -17
- package/dist/src/components/atoms/card/card-footer.js.map +0 -1
- package/dist/src/components/atoms/card/card-header.d.ts +0 -5
- package/dist/src/components/atoms/card/card-header.js +0 -17
- package/dist/src/components/atoms/card/card-header.js.map +0 -1
- package/dist/src/components/atoms/card/card-title.d.ts +0 -5
- package/dist/src/components/atoms/card/card-title.js +0 -17
- package/dist/src/components/atoms/card/card-title.js.map +0 -1
- package/dist/src/components/atoms/card/card.atom.d.ts +0 -11
- package/dist/src/components/atoms/card/card.atom.js +0 -25
- package/dist/src/components/atoms/card/card.atom.js.map +0 -1
- package/dist/src/components/atoms/card/card.stories.d.ts +0 -6
- package/dist/src/components/atoms/card/card.stories.js +0 -136
- package/dist/src/components/atoms/card/card.stories.js.map +0 -1
- package/dist/src/components/atoms/checkbox/checkbox.atom.d.ts +0 -13
- package/dist/src/components/atoms/checkbox/checkbox.atom.js +0 -87
- package/dist/src/components/atoms/checkbox/checkbox.atom.js.map +0 -1
- package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +0 -8
- package/dist/src/components/atoms/checkbox/checkbox.stories.js +0 -244
- package/dist/src/components/atoms/checkbox/checkbox.stories.js.map +0 -1
- package/dist/src/components/atoms/checkbox/checkbox.style.d.ts +0 -2
- package/dist/src/components/atoms/checkbox/checkbox.style.js +0 -3
- package/dist/src/components/atoms/checkbox/checkbox.style.js.map +0 -1
- package/dist/src/components/atoms/checkbox/checkbox.type.d.ts +0 -21
- package/dist/src/components/atoms/checkbox/checkbox.type.js +0 -2
- package/dist/src/components/atoms/checkbox/checkbox.type.js.map +0 -1
- package/dist/src/components/atoms/combo-box/combo-box-input.d.ts +0 -8
- package/dist/src/components/atoms/combo-box/combo-box-input.js +0 -47
- package/dist/src/components/atoms/combo-box/combo-box-input.js.map +0 -1
- package/dist/src/components/atoms/combo-box/combo-box-item.d.ts +0 -12
- package/dist/src/components/atoms/combo-box/combo-box-item.js +0 -85
- package/dist/src/components/atoms/combo-box/combo-box-item.js.map +0 -1
- package/dist/src/components/atoms/combo-box/combo-box-list.d.ts +0 -9
- package/dist/src/components/atoms/combo-box/combo-box-list.js +0 -67
- package/dist/src/components/atoms/combo-box/combo-box-list.js.map +0 -1
- package/dist/src/components/atoms/combo-box/combo-box.atom.d.ts +0 -23
- package/dist/src/components/atoms/combo-box/combo-box.atom.js +0 -199
- package/dist/src/components/atoms/combo-box/combo-box.atom.js.map +0 -1
- package/dist/src/components/atoms/combo-box/combo-box.stories.d.ts +0 -9
- package/dist/src/components/atoms/combo-box/combo-box.stories.js +0 -86
- package/dist/src/components/atoms/combo-box/combo-box.stories.js.map +0 -1
- package/dist/src/components/atoms/command-empty/command-empty.atom.d.ts +0 -9
- package/dist/src/components/atoms/command-empty/command-empty.atom.js +0 -53
- package/dist/src/components/atoms/command-empty/command-empty.atom.js.map +0 -1
- package/dist/src/components/atoms/command-group/command-group.atom.d.ts +0 -10
- package/dist/src/components/atoms/command-group/command-group.atom.js +0 -70
- package/dist/src/components/atoms/command-group/command-group.atom.js.map +0 -1
- package/dist/src/components/atoms/command-item/command-item.atom.d.ts +0 -12
- package/dist/src/components/atoms/command-item/command-item.atom.js +0 -78
- package/dist/src/components/atoms/command-item/command-item.atom.js.map +0 -1
- package/dist/src/components/atoms/command-list/command-list.atom.d.ts +0 -6
- package/dist/src/components/atoms/command-list/command-list.atom.js +0 -35
- package/dist/src/components/atoms/command-list/command-list.atom.js.map +0 -1
- package/dist/src/components/atoms/command-separator/command-separator.atom.d.ts +0 -9
- package/dist/src/components/atoms/command-separator/command-separator.atom.js +0 -51
- package/dist/src/components/atoms/command-separator/command-separator.atom.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog-close.d.ts +0 -7
- package/dist/src/components/atoms/dialog/dialog-close.js +0 -46
- package/dist/src/components/atoms/dialog/dialog-close.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog-content.d.ts +0 -8
- package/dist/src/components/atoms/dialog/dialog-content.js +0 -72
- package/dist/src/components/atoms/dialog/dialog-content.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog-footer.d.ts +0 -5
- package/dist/src/components/atoms/dialog/dialog-footer.js +0 -22
- package/dist/src/components/atoms/dialog/dialog-footer.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog-header.d.ts +0 -7
- package/dist/src/components/atoms/dialog/dialog-header.js +0 -40
- package/dist/src/components/atoms/dialog/dialog-header.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog-overly.d.ts +0 -5
- package/dist/src/components/atoms/dialog/dialog-overly.js +0 -20
- package/dist/src/components/atoms/dialog/dialog-overly.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog-trigger.d.ts +0 -8
- package/dist/src/components/atoms/dialog/dialog-trigger.js +0 -53
- package/dist/src/components/atoms/dialog/dialog-trigger.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog.atom.d.ts +0 -8
- package/dist/src/components/atoms/dialog/dialog.atom.js +0 -78
- package/dist/src/components/atoms/dialog/dialog.atom.js.map +0 -1
- package/dist/src/components/atoms/dialog/dialog.stories.d.ts +0 -16
- package/dist/src/components/atoms/dialog/dialog.stories.js +0 -88
- package/dist/src/components/atoms/dialog/dialog.stories.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.d.ts +0 -15
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js +0 -115
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.d.ts +0 -13
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js +0 -80
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.d.ts +0 -10
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js +0 -70
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.d.ts +0 -12
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js +0 -78
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.d.ts +0 -15
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js +0 -116
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.d.ts +0 -9
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js +0 -51
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.d.ts +0 -5
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js +0 -20
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.d.ts +0 -14
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js +0 -77
- package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.d.ts +0 -15
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js +0 -211
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js.map +0 -1
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.d.ts +0 -2
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js +0 -4
- package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js.map +0 -1
- package/dist/src/components/atoms/index.d.ts +0 -13
- package/dist/src/components/atoms/index.js +0 -14
- package/dist/src/components/atoms/index.js.map +0 -1
- package/dist/src/components/atoms/input/input.atom.d.ts +0 -21
- package/dist/src/components/atoms/input/input.atom.js +0 -93
- package/dist/src/components/atoms/input/input.atom.js.map +0 -1
- package/dist/src/components/atoms/input/input.stories.d.ts +0 -8
- package/dist/src/components/atoms/input/input.stories.js +0 -382
- package/dist/src/components/atoms/input/input.stories.js.map +0 -1
- package/dist/src/components/atoms/input/input.styles.d.ts +0 -1
- package/dist/src/components/atoms/input/input.styles.js +0 -2
- package/dist/src/components/atoms/input/input.styles.js.map +0 -1
- package/dist/src/components/atoms/input/input.type.d.ts +0 -21
- package/dist/src/components/atoms/input/input.type.js +0 -2
- package/dist/src/components/atoms/input/input.type.js.map +0 -1
- package/dist/src/components/atoms/label/label.atom.d.ts +0 -11
- package/dist/src/components/atoms/label/label.atom.js +0 -67
- package/dist/src/components/atoms/label/label.atom.js.map +0 -1
- package/dist/src/components/atoms/label/label.stories.d.ts +0 -6
- package/dist/src/components/atoms/label/label.stories.js +0 -85
- package/dist/src/components/atoms/label/label.stories.js.map +0 -1
- package/dist/src/components/atoms/label/label.style.d.ts +0 -1
- package/dist/src/components/atoms/label/label.style.js +0 -3
- package/dist/src/components/atoms/label/label.style.js.map +0 -1
- package/dist/src/components/atoms/popover/popover-content.d.ts +0 -11
- package/dist/src/components/atoms/popover/popover-content.js +0 -62
- package/dist/src/components/atoms/popover/popover-content.js.map +0 -1
- package/dist/src/components/atoms/popover/popover-trigger.d.ts +0 -9
- package/dist/src/components/atoms/popover/popover-trigger.js +0 -50
- package/dist/src/components/atoms/popover/popover-trigger.js.map +0 -1
- package/dist/src/components/atoms/popover/popover.atom.d.ts +0 -8
- package/dist/src/components/atoms/popover/popover.atom.js +0 -40
- package/dist/src/components/atoms/popover/popover.atom.js.map +0 -1
- package/dist/src/components/atoms/popover/popover.stories.d.ts +0 -10
- package/dist/src/components/atoms/popover/popover.stories.js +0 -69
- package/dist/src/components/atoms/popover/popover.stories.js.map +0 -1
- package/dist/src/components/atoms/popover/popover.style.d.ts +0 -5
- package/dist/src/components/atoms/popover/popover.style.js +0 -21
- package/dist/src/components/atoms/popover/popover.style.js.map +0 -1
- package/dist/src/components/atoms/popover/popover.types.d.ts +0 -2
- package/dist/src/components/atoms/popover/popover.types.js +0 -4
- package/dist/src/components/atoms/popover/popover.types.js.map +0 -1
- package/dist/src/components/atoms/toggle/defs.d.ts +0 -27
- package/dist/src/components/atoms/toggle/defs.js +0 -30
- package/dist/src/components/atoms/toggle/defs.js.map +0 -1
- package/dist/src/components/atoms/toggle/toggle.atom.d.ts +0 -19
- package/dist/src/components/atoms/toggle/toggle.atom.js +0 -72
- package/dist/src/components/atoms/toggle/toggle.atom.js.map +0 -1
- package/dist/src/components/atoms/toggle/toggle.stories.d.ts +0 -6
- package/dist/src/components/atoms/toggle/toggle.stories.js +0 -189
- package/dist/src/components/atoms/toggle/toggle.stories.js.map +0 -1
- package/dist/src/components/atoms/toggle/toggle.style.d.ts +0 -4
- package/dist/src/components/atoms/toggle/toggle.style.js +0 -19
- package/dist/src/components/atoms/toggle/toggle.style.js.map +0 -1
- package/dist/src/components/command/command.d.ts +0 -56
- package/dist/src/components/command/command.js +0 -402
- package/dist/src/components/command/command.js.map +0 -1
- package/dist/src/components/command/command.stories.d.ts +0 -5
- package/dist/src/components/command/command.stories.js +0 -153
- package/dist/src/components/command/command.stories.js.map +0 -1
- package/dist/src/components/index.d.ts +0 -2
- package/dist/src/components/index.js +0 -3
- package/dist/src/components/index.js.map +0 -1
- package/dist/src/components/molecules/command/command.molecules.d.ts +0 -6
- package/dist/src/components/molecules/command/command.molecules.js +0 -27
- package/dist/src/components/molecules/command/command.molecules.js.map +0 -1
- package/dist/src/components/molecules/command-input/command-input.atom.d.ts +0 -10
- package/dist/src/components/molecules/command-input/command-input.atom.js +0 -125
- package/dist/src/components/molecules/command-input/command-input.atom.js.map +0 -1
- package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts +0 -0
- package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js +0 -2
- package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js.map +0 -1
- package/dist/src/components/molecules/index.d.ts +0 -1
- package/dist/src/components/molecules/index.js +0 -2
- package/dist/src/components/molecules/index.js.map +0 -1
- package/dist/src/helpers/base-element.d.ts +0 -10
- package/dist/src/helpers/base-element.js +0 -62
- package/dist/src/helpers/base-element.js.map +0 -1
- package/dist/src/helpers/index.d.ts +0 -3
- package/dist/src/helpers/index.js +0 -4
- package/dist/src/helpers/index.js.map +0 -1
- package/dist/src/helpers/mouse-conroller.helper.d.ts +0 -14
- package/dist/src/helpers/mouse-conroller.helper.js +0 -33
- package/dist/src/helpers/mouse-conroller.helper.js.map +0 -1
- package/dist/src/helpers/style.helpers.d.ts +0 -2
- package/dist/src/helpers/style.helpers.js +0 -6
- package/dist/src/helpers/style.helpers.js.map +0 -1
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.js +0 -5
- package/dist/src/index.js.map +0 -1
- package/dist/src/interfaces/actionable.interface.d.ts +0 -5
- package/dist/src/interfaces/actionable.interface.js +0 -2
- package/dist/src/interfaces/actionable.interface.js.map +0 -1
- package/dist/src/interfaces/atomic.interface.d.ts +0 -6
- package/dist/src/interfaces/atomic.interface.js +0 -2
- package/dist/src/interfaces/atomic.interface.js.map +0 -1
- package/dist/src/interfaces/changeable.interface.d.ts +0 -7
- package/dist/src/interfaces/changeable.interface.js +0 -2
- package/dist/src/interfaces/changeable.interface.js.map +0 -1
- package/dist/src/interfaces/child-support-atomic.interface.d.ts +0 -4
- package/dist/src/interfaces/child-support-atomic.interface.js +0 -2
- package/dist/src/interfaces/child-support-atomic.interface.js.map +0 -1
- package/dist/src/interfaces/index.d.ts +0 -6
- package/dist/src/interfaces/index.js +0 -7
- package/dist/src/interfaces/index.js.map +0 -1
- package/dist/src/interfaces/intractable.interface.d.ts +0 -6
- package/dist/src/interfaces/intractable.interface.js +0 -2
- package/dist/src/interfaces/intractable.interface.js.map +0 -1
- package/dist/src/interfaces/variant.interface.d.ts +0 -3
- package/dist/src/interfaces/variant.interface.js +0 -2
- package/dist/src/interfaces/variant.interface.js.map +0 -1
- package/dist/src/lib/index.d.ts +0 -0
- package/dist/src/lib/index.js +0 -2
- package/dist/src/lib/index.js.map +0 -1
- package/dist/src/lib/next/next.lib.d.ts +0 -0
- package/dist/src/lib/next/next.lib.js +0 -2
- package/dist/src/lib/next/next.lib.js.map +0 -1
- package/dist/src/lib/react/react.lib.d.ts +0 -5
- package/dist/src/lib/react/react.lib.js +0 -16
- package/dist/src/lib/react/react.lib.js.map +0 -1
- package/dist/src/lib/tw-styles.d.ts +0 -1
- package/dist/src/lib/tw-styles.js +0 -1956
- package/dist/src/lib/tw-styles.js.map +0 -1
- package/dist/src/styles/index.d.ts +0 -1
- package/dist/src/styles/index.js +0 -2
- package/dist/src/styles/index.js.map +0 -1
- package/dist/src/styles/tw.styles.d.ts +0 -1
- package/dist/src/styles/tw.styles.js +0 -2218
- package/dist/src/styles/tw.styles.js.map +0 -1
- package/dist/src/wc-ui-app.d.ts +0 -6
- package/dist/src/wc-ui-app.js +0 -88
- package/dist/src/wc-ui-app.js.map +0 -1
- package/dist/test/wc-ui-app.test.d.ts +0 -0
- package/dist/test/wc-ui-app.test.js +0 -18
- package/dist/test/wc-ui-app.test.js.map +0 -1
- package/dist/vite.config.d.ts +0 -2
- package/dist/vite.config.js +0 -29
- package/dist/vite.config.js.map +0 -1
@@ -1,189 +0,0 @@
|
|
1
|
-
import { html } from 'lit';
|
2
|
-
import { expect, within, waitFor, userEvent } from '@storybook/test';
|
3
|
-
import { Toggle, TOGGLE_SIZE, TOGGLE_VARIANT } from './toggle.atom';
|
4
|
-
// import '../button';
|
5
|
-
const meta = {
|
6
|
-
component: 'Toggle',
|
7
|
-
tags: ['autodocs'],
|
8
|
-
argTypes: {
|
9
|
-
variant: {
|
10
|
-
control: {
|
11
|
-
type: 'select',
|
12
|
-
},
|
13
|
-
options: Object.values(TOGGLE_VARIANT),
|
14
|
-
defaultValue: 'DEFAULT',
|
15
|
-
description: 'Choose the visual style of the toggle.',
|
16
|
-
table: {
|
17
|
-
defaultValue: { summary: 'DEFAULT' },
|
18
|
-
},
|
19
|
-
},
|
20
|
-
size: {
|
21
|
-
control: {
|
22
|
-
type: 'select',
|
23
|
-
},
|
24
|
-
options: Object.values(TOGGLE_SIZE),
|
25
|
-
description: 'Choose the size of the toggle.',
|
26
|
-
defaultValue: 'SMALL',
|
27
|
-
table: {
|
28
|
-
defaultValue: { summary: 'SMALL' },
|
29
|
-
},
|
30
|
-
},
|
31
|
-
disabled: {
|
32
|
-
control: 'boolean',
|
33
|
-
description: 'Disable the toggle to prevent interactions.',
|
34
|
-
table: {
|
35
|
-
defaultValue: { summary: 'false' },
|
36
|
-
},
|
37
|
-
},
|
38
|
-
checked: {
|
39
|
-
control: 'boolean',
|
40
|
-
description: 'Set the initial checked state of the toggle.',
|
41
|
-
table: {
|
42
|
-
defaultValue: { summary: 'false' },
|
43
|
-
},
|
44
|
-
},
|
45
|
-
required: {
|
46
|
-
control: 'boolean',
|
47
|
-
description: 'Mark the toggle as required.',
|
48
|
-
table: {
|
49
|
-
defaultValue: { summary: 'false' },
|
50
|
-
},
|
51
|
-
},
|
52
|
-
},
|
53
|
-
};
|
54
|
-
const testToggleBehavior = async (args, canvasElement, mockHandler) => {
|
55
|
-
const canvas = within(canvasElement);
|
56
|
-
const toggle = await waitFor(() => canvas.getByTestId('toggle-id'));
|
57
|
-
if (toggle.shadowRoot) {
|
58
|
-
const innerToggle = toggle.shadowRoot.querySelector('[data-testchild="children-id"]');
|
59
|
-
expect(innerToggle).toHaveAttribute('type', 'button');
|
60
|
-
// Test toggle state
|
61
|
-
if (args.checked) {
|
62
|
-
expect(innerToggle).toBeChecked();
|
63
|
-
}
|
64
|
-
else {
|
65
|
-
expect(innerToggle).not.toBeChecked();
|
66
|
-
}
|
67
|
-
// Test toggle click behavior
|
68
|
-
if (!args.disabled && innerToggle) {
|
69
|
-
await userEvent.click(innerToggle);
|
70
|
-
if (mockHandler) {
|
71
|
-
expect(mockHandler).toHaveBeenCalled();
|
72
|
-
}
|
73
|
-
}
|
74
|
-
// Test toggle disabled state
|
75
|
-
if (args.disabled) {
|
76
|
-
expect(innerToggle).toBeDisabled();
|
77
|
-
}
|
78
|
-
else {
|
79
|
-
expect(innerToggle).not.toBeDisabled();
|
80
|
-
}
|
81
|
-
// Test toggle variant classes
|
82
|
-
const expectedClasses = Toggle.toggleVariants({
|
83
|
-
variant: args.variant,
|
84
|
-
size: args.size,
|
85
|
-
className: '',
|
86
|
-
});
|
87
|
-
expect(innerToggle).toHaveClass(expectedClasses);
|
88
|
-
// Test toggle size classes
|
89
|
-
const expectedSizeClasses = Toggle.toggleVariants({
|
90
|
-
variant: args.variant,
|
91
|
-
size: args.size,
|
92
|
-
className: '',
|
93
|
-
});
|
94
|
-
expect(innerToggle).toHaveClass(expectedSizeClasses);
|
95
|
-
}
|
96
|
-
};
|
97
|
-
export default meta;
|
98
|
-
export const Toggles = {
|
99
|
-
args: {
|
100
|
-
variant: 'DEFAULT',
|
101
|
-
size: 'SMALL',
|
102
|
-
disabled: false,
|
103
|
-
checked: false,
|
104
|
-
required: false,
|
105
|
-
},
|
106
|
-
render: ({ variant, size, disabled, checked, required }) => html `
|
107
|
-
<rtg-toggle
|
108
|
-
?disabled=${disabled}
|
109
|
-
?checked=${checked}
|
110
|
-
?required=${required}
|
111
|
-
.variant=${variant}
|
112
|
-
.size=${size}
|
113
|
-
data-testid="toggle-id"
|
114
|
-
data-testchild="children-id"
|
115
|
-
>
|
116
|
-
<svg
|
117
|
-
xmlns="http://www.w3.org/2000/svg"
|
118
|
-
width="24"
|
119
|
-
height="24"
|
120
|
-
viewBox="0 0 24 24"
|
121
|
-
fill="none"
|
122
|
-
stroke="currentColor"
|
123
|
-
stroke-width="2"
|
124
|
-
stroke-linecap="round"
|
125
|
-
stroke-linejoin="round"
|
126
|
-
class="lucide lucide-bold h-4 w-4"
|
127
|
-
>
|
128
|
-
<path d="M14 12a4 4 0 0 0 0-8H6v8"></path>
|
129
|
-
<path d="M15 20a4 4 0 0 0 0-8H6v8Z"></path>
|
130
|
-
</svg>
|
131
|
-
</rtg-toggle>
|
132
|
-
`,
|
133
|
-
play: async ({ args, canvasElement }) => {
|
134
|
-
await testToggleBehavior(args, canvasElement, null);
|
135
|
-
},
|
136
|
-
};
|
137
|
-
export const RequiredToggle = {
|
138
|
-
name: 'Required Toggle',
|
139
|
-
args: {
|
140
|
-
variant: 'DEFAULT',
|
141
|
-
size: 'SMALL',
|
142
|
-
disabled: false,
|
143
|
-
checked: false,
|
144
|
-
required: true,
|
145
|
-
},
|
146
|
-
render: ({ variant, size, disabled, checked, required }) => html `
|
147
|
-
<div>
|
148
|
-
<rtg-toggle
|
149
|
-
?disabled=${disabled}
|
150
|
-
?checked=${checked}
|
151
|
-
?required=${required}
|
152
|
-
.variant=${variant}
|
153
|
-
.size=${size}
|
154
|
-
data-testid="toggle-id"
|
155
|
-
data-testchild="children-id"
|
156
|
-
@click=${(e) => {
|
157
|
-
const checkbox = e.target;
|
158
|
-
const button = document.querySelector('rtg-button');
|
159
|
-
if (button) {
|
160
|
-
button.disabled = required ? !checkbox.checked : false;
|
161
|
-
}
|
162
|
-
}}
|
163
|
-
>
|
164
|
-
<svg
|
165
|
-
xmlns="http://www.w3.org/2000/svg"
|
166
|
-
width="24"
|
167
|
-
height="24"
|
168
|
-
viewBox="0 0 24 24"
|
169
|
-
fill="none"
|
170
|
-
stroke="currentColor"
|
171
|
-
stroke-width="2"
|
172
|
-
stroke-linecap="round"
|
173
|
-
stroke-linejoin="round"
|
174
|
-
class="lucide lucide-italic h-4 w-4"
|
175
|
-
>
|
176
|
-
<line x1="19" x2="10" y1="4" y2="4"></line>
|
177
|
-
<line x1="14" x2="5" y1="20" y2="20"></line>
|
178
|
-
<line x1="15" x2="9" y1="4" y2="20"></line>
|
179
|
-
</svg>
|
180
|
-
</rtg-toggle>
|
181
|
-
</div>
|
182
|
-
|
183
|
-
<rtg-button ?disabled=${required && !checked}> send </rtg-button>
|
184
|
-
`,
|
185
|
-
play: async ({ args, canvasElement }) => {
|
186
|
-
await testToggleBehavior(args, canvasElement, null);
|
187
|
-
},
|
188
|
-
};
|
189
|
-
//# sourceMappingURL=toggle.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"toggle.stories.js","sourceRoot":"","sources":["../../../../../src/components/atoms/toggle/toggle.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import { html } from 'lit';\nimport type { Meta, StoryObj } from '@storybook/web-components';\nimport { expect, within, waitFor, userEvent } from '@storybook/test';\nimport { Toggle, TOGGLE_SIZE, TOGGLE_VARIANT } from './toggle.atom';\n// import '../button';\n\nconst meta: Meta = {\n component: 'Toggle',\n tags: ['autodocs'],\n argTypes: {\n variant: {\n control: {\n type: 'select',\n },\n options: Object.values(TOGGLE_VARIANT),\n defaultValue: 'DEFAULT',\n description: 'Choose the visual style of the toggle.',\n table: {\n defaultValue: { summary: 'DEFAULT' },\n },\n },\n size: {\n control: {\n type: 'select',\n },\n options: Object.values(TOGGLE_SIZE),\n description: 'Choose the size of the toggle.',\n defaultValue: 'SMALL',\n table: {\n defaultValue: { summary: 'SMALL' },\n },\n },\n disabled: {\n control: 'boolean',\n description: 'Disable the toggle to prevent interactions.',\n table: {\n defaultValue: { summary: 'false' },\n },\n },\n checked: {\n control: 'boolean',\n description: 'Set the initial checked state of the toggle.',\n table: {\n defaultValue: { summary: 'false' },\n },\n },\n required: {\n control: 'boolean',\n description: 'Mark the toggle as required.',\n table: {\n defaultValue: { summary: 'false' },\n },\n },\n },\n};\n\nconst testToggleBehavior = async (\n args: any,\n canvasElement: any,\n mockHandler: any\n) => {\n const canvas = within(canvasElement);\n const toggle = await waitFor(() => canvas.getByTestId('toggle-id'));\n if (toggle.shadowRoot) {\n const innerToggle = toggle.shadowRoot.querySelector(\n '[data-testchild=\"children-id\"]'\n );\n expect(innerToggle).toHaveAttribute('type', 'button');\n // Test toggle state\n if (args.checked) {\n expect(innerToggle).toBeChecked();\n } else {\n expect(innerToggle).not.toBeChecked();\n }\n\n // Test toggle click behavior\n if (!args.disabled && innerToggle) {\n await userEvent.click(innerToggle);\n if (mockHandler) {\n expect(mockHandler).toHaveBeenCalled();\n }\n }\n\n // Test toggle disabled state\n if (args.disabled) {\n expect(innerToggle).toBeDisabled();\n } else {\n expect(innerToggle).not.toBeDisabled();\n }\n\n // Test toggle variant classes\n const expectedClasses = Toggle.toggleVariants({\n variant: args.variant,\n size: args.size,\n className: '',\n });\n expect(innerToggle).toHaveClass(expectedClasses);\n // Test toggle size classes\n const expectedSizeClasses = Toggle.toggleVariants({\n variant: args.variant,\n size: args.size,\n className: '',\n });\n expect(innerToggle).toHaveClass(expectedSizeClasses);\n }\n};\n\nexport default meta;\ntype Story = StoryObj;\n\nexport const Toggles: Story = {\n args: {\n variant: 'DEFAULT',\n size: 'SMALL',\n disabled: false,\n checked: false,\n required: false,\n },\n render: ({ variant, size, disabled, checked, required }) => html`\n <rtg-toggle\n ?disabled=${disabled}\n ?checked=${checked}\n ?required=${required}\n .variant=${variant}\n .size=${size}\n data-testid=\"toggle-id\"\n data-testchild=\"children-id\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"lucide lucide-bold h-4 w-4\"\n >\n <path d=\"M14 12a4 4 0 0 0 0-8H6v8\"></path>\n <path d=\"M15 20a4 4 0 0 0 0-8H6v8Z\"></path>\n </svg>\n </rtg-toggle>\n `,\n play: async ({ args, canvasElement }) => {\n await testToggleBehavior(args, canvasElement, null);\n },\n};\n\nexport const RequiredToggle: Story = {\n name: 'Required Toggle',\n args: {\n variant: 'DEFAULT',\n size: 'SMALL',\n disabled: false,\n checked: false,\n required: true,\n },\n render: ({ variant, size, disabled, checked, required }) => html`\n <div>\n <rtg-toggle\n ?disabled=${disabled}\n ?checked=${checked}\n ?required=${required}\n .variant=${variant}\n .size=${size}\n data-testid=\"toggle-id\"\n data-testchild=\"children-id\"\n @click=${(e: Event) => {\n const checkbox = e.target as HTMLInputElement;\n const button = document.querySelector(\n 'rtg-button'\n ) as unknown as HTMLButtonElement;\n if (button) {\n button.disabled = required ? !checkbox.checked : false;\n }\n }}\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"lucide lucide-italic h-4 w-4\"\n >\n <line x1=\"19\" x2=\"10\" y1=\"4\" y2=\"4\"></line>\n <line x1=\"14\" x2=\"5\" y1=\"20\" y2=\"20\"></line>\n <line x1=\"15\" x2=\"9\" y1=\"4\" y2=\"20\"></line>\n </svg>\n </rtg-toggle>\n </div>\n\n <rtg-button ?disabled=${required && !checked}> send </rtg-button>\n `,\n play: async ({ args, canvasElement }) => {\n await testToggleBehavior(args, canvasElement, null);\n },\n};\n"]}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { cva } from 'class-variance-authority';
|
2
|
-
export const toggleStyle = cva('inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground bg-transparent h-10 px-3', {
|
3
|
-
variants: {
|
4
|
-
variant: {
|
5
|
-
default: ` hover:bg-muted hover:text-muted-foreground`,
|
6
|
-
outline: ` border border-input hover:bg-accent hover:text-accent-foreground`,
|
7
|
-
},
|
8
|
-
size: {
|
9
|
-
sm: 'h-9 px-2.5',
|
10
|
-
md: 'h-10 px-3',
|
11
|
-
lg: 'h-11 px-5',
|
12
|
-
},
|
13
|
-
},
|
14
|
-
defaultVariants: {
|
15
|
-
variant: 'default',
|
16
|
-
size: 'sm',
|
17
|
-
},
|
18
|
-
});
|
19
|
-
//# sourceMappingURL=toggle.style.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"toggle.style.js","sourceRoot":"","sources":["../../../../../src/components/atoms/toggle/toggle.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,gWAAgW,EAChW;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,6CAA6C;YACtD,OAAO,EAAE,mEAAmE;SAC7E;QACD,IAAI,EAAE;YACJ,EAAE,EAAE,YAAY;YAChB,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,WAAW;SAChB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;KACX;CACF,CACF,CAAC","sourcesContent":["import { cva } from 'class-variance-authority';\n\nexport const toggleStyle = cva(\n 'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground bg-transparent h-10 px-3',\n {\n variants: {\n variant: {\n default: ` hover:bg-muted hover:text-muted-foreground`,\n outline: ` border border-input hover:bg-accent hover:text-accent-foreground`,\n },\n size: {\n sm: 'h-9 px-2.5',\n md: 'h-10 px-3',\n lg: 'h-11 px-5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'sm',\n },\n }\n);\n"]}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { LitElement } from 'lit';
|
2
|
-
export declare class Command extends LitElement {
|
3
|
-
static styles: import("lit").CSSResult[];
|
4
|
-
_input: Array<HTMLElement>;
|
5
|
-
render(): import("lit-html").TemplateResult<1>;
|
6
|
-
}
|
7
|
-
export declare class CommandList extends LitElement {
|
8
|
-
static styles: import("lit").CSSResult[];
|
9
|
-
private get identifier();
|
10
|
-
render(): import("lit-html").TemplateResult<1>;
|
11
|
-
}
|
12
|
-
export declare class CommandGroup extends LitElement {
|
13
|
-
heading: string;
|
14
|
-
_id: string;
|
15
|
-
_hidden: string;
|
16
|
-
private static _counter;
|
17
|
-
static styles: import("lit").CSSResult[];
|
18
|
-
private get identifier();
|
19
|
-
render(): import("lit-html").TemplateResult<1>;
|
20
|
-
}
|
21
|
-
export declare class CommandSeparator extends LitElement {
|
22
|
-
_id: string;
|
23
|
-
_hidden: string;
|
24
|
-
private static _counter;
|
25
|
-
static styles: import("lit").CSSResult[];
|
26
|
-
private get identifier();
|
27
|
-
render(): import("lit-html").TemplateResult<1>;
|
28
|
-
}
|
29
|
-
export declare class CommandEmpty extends LitElement {
|
30
|
-
_id: string;
|
31
|
-
_hidden: string;
|
32
|
-
private static _counter;
|
33
|
-
static styles: import("lit").CSSResult[];
|
34
|
-
private get identifier();
|
35
|
-
render(): import("lit-html").TemplateResult<1>;
|
36
|
-
}
|
37
|
-
export declare class CommandItem extends LitElement {
|
38
|
-
_id: string;
|
39
|
-
_hidden: string;
|
40
|
-
private static _counter;
|
41
|
-
static styles: import("lit").CSSResult[];
|
42
|
-
private get identifier();
|
43
|
-
get value(): string;
|
44
|
-
selected: boolean;
|
45
|
-
private handleMouseEvent;
|
46
|
-
render(): import("lit-html").TemplateResult<1>;
|
47
|
-
}
|
48
|
-
export declare class CommandInput extends LitElement {
|
49
|
-
placeholder: string;
|
50
|
-
_value: string;
|
51
|
-
static styles: import("lit").CSSResult[];
|
52
|
-
private get identifier();
|
53
|
-
private filterItems;
|
54
|
-
private handleChange;
|
55
|
-
render(): import("lit-html").TemplateResult<1>;
|
56
|
-
}
|