@central-ui/react 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +33 -2
- package/dist/components/accordion/index.d.ts +73 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +92 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/autocomplete/index.d.ts +365 -0
- package/dist/components/autocomplete/index.d.ts.map +1 -0
- package/dist/components/autocomplete/index.js +369 -0
- package/dist/components/autocomplete/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +48 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +60 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/index.d.ts +29 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +36 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/banner/index.d.ts +71 -0
- package/dist/components/banner/index.d.ts.map +1 -0
- package/dist/components/banner/index.js +119 -0
- package/dist/components/banner/index.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +31 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +42 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/index.d.ts +48 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +60 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/index.d.ts +34 -0
- package/dist/components/card/index.d.ts.map +1 -0
- package/dist/components/card/index.js +45 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +66 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +146 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/chip/index.d.ts +26 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/chip/index.js +40 -0
- package/dist/components/chip/index.js.map +1 -0
- package/dist/components/combobox/index.d.ts +427 -0
- package/dist/components/combobox/index.d.ts.map +1 -0
- package/dist/components/combobox/index.js +416 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/datepicker/index.d.ts +297 -0
- package/dist/components/datepicker/index.d.ts.map +1 -0
- package/dist/components/datepicker/index.js +507 -0
- package/dist/components/datepicker/index.js.map +1 -0
- package/dist/components/dialog/index.d.ts +88 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/index.js +102 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/divider/index.d.ts +21 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +24 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/index.d.ts +99 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +137 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/empty/index.d.ts +40 -0
- package/dist/components/empty/index.d.ts.map +1 -0
- package/dist/components/empty/index.js +61 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/fileupload/index.d.ts +107 -0
- package/dist/components/fileupload/index.d.ts.map +1 -0
- package/dist/components/fileupload/index.js +185 -0
- package/dist/components/fileupload/index.js.map +1 -0
- package/dist/components/form/index.d.ts +34 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.js +35 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/input/index.d.ts +85 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +249 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/menu/index.d.ts +115 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +188 -0
- package/dist/components/menu/index.js.map +1 -0
- package/dist/components/metric/index.d.ts +24 -0
- package/dist/components/metric/index.d.ts.map +1 -0
- package/dist/components/metric/index.js +26 -0
- package/dist/components/metric/index.js.map +1 -0
- package/dist/components/numberinput/index.d.ts +105 -0
- package/dist/components/numberinput/index.d.ts.map +1 -0
- package/dist/components/numberinput/index.js +240 -0
- package/dist/components/numberinput/index.js.map +1 -0
- package/dist/components/otpinput/index.d.ts +63 -0
- package/dist/components/otpinput/index.d.ts.map +1 -0
- package/dist/components/otpinput/index.js +133 -0
- package/dist/components/otpinput/index.js.map +1 -0
- package/dist/components/page/index.d.ts +54 -0
- package/dist/components/page/index.d.ts.map +1 -0
- package/dist/components/page/index.js +100 -0
- package/dist/components/page/index.js.map +1 -0
- package/dist/components/passwordinput/index.d.ts +88 -0
- package/dist/components/passwordinput/index.d.ts.map +1 -0
- package/dist/components/passwordinput/index.js +251 -0
- package/dist/components/passwordinput/index.js.map +1 -0
- package/dist/components/popover/index.d.ts +67 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +76 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/radio/index.d.ts +90 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +232 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/ratinginput/index.d.ts +59 -0
- package/dist/components/ratinginput/index.d.ts.map +1 -0
- package/dist/components/ratinginput/index.js +88 -0
- package/dist/components/ratinginput/index.js.map +1 -0
- package/dist/components/select/index.d.ts +205 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +234 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/skeleton/index.d.ts +19 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +20 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/slider/index.d.ts +72 -0
- package/dist/components/slider/index.d.ts.map +1 -0
- package/dist/components/slider/index.js +159 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/spinner/index.d.ts +14 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +15 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/splitter/index.d.ts +49 -0
- package/dist/components/splitter/index.d.ts.map +1 -0
- package/dist/components/splitter/index.js +67 -0
- package/dist/components/splitter/index.js.map +1 -0
- package/dist/components/stepper/index.d.ts +82 -0
- package/dist/components/stepper/index.d.ts.map +1 -0
- package/dist/components/stepper/index.js +100 -0
- package/dist/components/stepper/index.js.map +1 -0
- package/dist/components/switch/index.d.ts +57 -0
- package/dist/components/switch/index.d.ts.map +1 -0
- package/dist/components/switch/index.js +101 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/index.d.ts +110 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/table/index.js +211 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +67 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +78 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/textarea/index.d.ts +72 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +205 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textlink/index.d.ts +39 -0
- package/dist/components/textlink/index.d.ts.map +1 -0
- package/dist/components/textlink/index.js +42 -0
- package/dist/components/textlink/index.js.map +1 -0
- package/dist/components/toast/index.d.ts +111 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +205 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toggle/index.d.ts +41 -0
- package/dist/components/toggle/index.d.ts.map +1 -0
- package/dist/components/toggle/index.js +78 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +44 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +51 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Style.d.ts +14 -0
- package/dist/types/Style.d.ts.map +1 -0
- package/dist/types/Style.js +2 -0
- package/dist/types/Style.js.map +1 -0
- package/dist/types/Tone.d.ts +4 -0
- package/dist/types/Tone.d.ts.map +1 -0
- package/dist/types/Tone.js +2 -0
- package/dist/types/Tone.js.map +1 -0
- package/dist/utils/ArkStateToDataAttributes.d.ts +4 -0
- package/dist/utils/ArkStateToDataAttributes.d.ts.map +1 -0
- package/dist/utils/ArkStateToDataAttributes.js +9 -0
- package/dist/utils/ArkStateToDataAttributes.js.map +1 -0
- package/dist/utils/Tone.d.ts +3 -0
- package/dist/utils/Tone.d.ts.map +1 -0
- package/dist/utils/Tone.js +7 -0
- package/dist/utils/Tone.js.map +1 -0
- package/dist/utils/useForwardClickToInput.d.ts +4 -0
- package/dist/utils/useForwardClickToInput.d.ts.map +1 -0
- package/dist/utils/useForwardClickToInput.js +27 -0
- package/dist/utils/useForwardClickToInput.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts +198 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js +180 -0
- package/dist/utils/virtualization/useVirtualizedAutocomplete.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts +200 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.js +174 -0
- package/dist/utils/virtualization/useVirtualizedCombobox.js.map +1 -0
- package/dist/utils/virtualization/useVirtualizedTable.d.ts +169 -0
- package/dist/utils/virtualization/useVirtualizedTable.d.ts.map +1 -0
- package/dist/utils/virtualization/useVirtualizedTable.js +127 -0
- package/dist/utils/virtualization/useVirtualizedTable.js.map +1 -0
- package/package.json +64 -4
- package/src/presets/shopify-polaris/shopify-polaris-accordion.css +28 -0
- package/src/presets/shopify-polaris/shopify-polaris-autocomplete.css +155 -0
- package/src/presets/shopify-polaris/shopify-polaris-avatar.css +47 -0
- package/src/presets/shopify-polaris/shopify-polaris-badge.css +27 -0
- package/src/presets/shopify-polaris/shopify-polaris-banner.css +111 -0
- package/src/presets/shopify-polaris/shopify-polaris-breadcrumb.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-button.css +79 -0
- package/src/presets/shopify-polaris/shopify-polaris-card.css +28 -0
- package/src/presets/shopify-polaris/shopify-polaris-checkbox.css +52 -0
- package/src/presets/shopify-polaris/shopify-polaris-chip.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-combobox.css +179 -0
- package/src/presets/shopify-polaris/shopify-polaris-datepicker.css +183 -0
- package/src/presets/shopify-polaris/shopify-polaris-dialog.css +40 -0
- package/src/presets/shopify-polaris/shopify-polaris-divider.css +12 -0
- package/src/presets/shopify-polaris/shopify-polaris-drawer.css +40 -0
- package/src/presets/shopify-polaris/shopify-polaris-empty.css +32 -0
- package/src/presets/shopify-polaris/shopify-polaris-fileupload.css +78 -0
- package/src/presets/shopify-polaris/shopify-polaris-form.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-input.css +72 -0
- package/src/presets/shopify-polaris/shopify-polaris-menu.css +112 -0
- package/src/presets/shopify-polaris/shopify-polaris-metric.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-numberinput.css +88 -0
- package/src/presets/shopify-polaris/shopify-polaris-otpinput.css +42 -0
- package/src/presets/shopify-polaris/shopify-polaris-page.css +69 -0
- package/src/presets/shopify-polaris/shopify-polaris-passwordinput.css +76 -0
- package/src/presets/shopify-polaris/shopify-polaris-popover.css +47 -0
- package/src/presets/shopify-polaris/shopify-polaris-radio.css +54 -0
- package/src/presets/shopify-polaris/shopify-polaris-ratinginput.css +42 -0
- package/src/presets/shopify-polaris/shopify-polaris-select.css +119 -0
- package/src/presets/shopify-polaris/shopify-polaris-skeleton.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-slider.css +86 -0
- package/src/presets/shopify-polaris/shopify-polaris-spinner.css +16 -0
- package/src/presets/shopify-polaris/shopify-polaris-splitter.css +34 -0
- package/src/presets/shopify-polaris/shopify-polaris-stepper.css +55 -0
- package/src/presets/shopify-polaris/shopify-polaris-switch.css +38 -0
- package/src/presets/shopify-polaris/shopify-polaris-table.css +72 -0
- package/src/presets/shopify-polaris/shopify-polaris-tabs.css +33 -0
- package/src/presets/shopify-polaris/shopify-polaris-textarea.css +61 -0
- package/src/presets/shopify-polaris/shopify-polaris-textlink.css +8 -0
- package/src/presets/shopify-polaris/shopify-polaris-toggle.css +52 -0
- package/src/presets/shopify-polaris/shopify-polaris-tooltip.css +31 -0
- package/src/presets/shopify-polaris/shopify-polaris.css +380 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-accordion.css +28 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-autocomplete.css +155 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-avatar.css +47 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-badge.css +27 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-banner.css +96 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-breadcrumb.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-button.css +68 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-card.css +28 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-checkbox.css +52 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-chip.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-combobox.css +184 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-datepicker.css +187 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-dialog.css +40 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-divider.css +12 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-drawer.css +40 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-empty.css +32 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-fileupload.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-form.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-input.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-menu.css +112 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-metric.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-numberinput.css +88 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-otpinput.css +42 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-page.css +69 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-passwordinput.css +76 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-popover.css +47 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-radio.css +54 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-ratinginput.css +42 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-select.css +118 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-skeleton.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-slider.css +86 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-spinner.css +16 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-splitter.css +34 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-stepper.css +55 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-switch.css +38 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-table.css +72 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tabs.css +33 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textarea.css +61 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-textlink.css +8 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-toast.css +43 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-toggle.css +52 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy-tooltip.css +31 -0
- package/src/presets/shopify-polaris-legacy/shopify-polaris-legacy.css +381 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/toast/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,UAAU,EACV,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAIxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,QAAQ,EACR,OAAO,GAAG,IAAI,EACd,KAAK,GAAG,CAAC,EACT,SAAS,EACT,KAAK,GACS;IACd,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAC9B,SAAS,CAAC,kBAAkB,EAAoB,CACjD,CAAA;IACD,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,GAAG,OAAO,CAAA;QACvB,OAAO,GAAG,EAAE;YACV,IAAI,aAAa,KAAK,OAAO;gBAAE,aAAa,GAAG,SAAS,CAAA;QAC1D,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACb,OAAO,CACL,MAAC,SAAS,CAAC,QAAQ,IAAC,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,aACtE,QAAQ,EACT,KAAC,aAAa,IAAC,SAAS,EAAE,SAAS,EAAE,K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,CAAC,IAAK,CAAC,MAAM,EAAE,IAHvB,YAAY,CAAC,EAAE,CAIS,CAChC,CAAC,GACiB,GACJ,CACpB,CAAA;AACH,CAAC;AAED,IAAI,aAC2E,CAAA;AAC/E,MAAM,mBAAmB,GACvB,aAAa,CAAsD,IAAI,CAAC,CAAA;AAC1E,MAAM,WAAW,GAAG,aAAa,CAAkC,SAAS,CAAC,CAAA;AAC7E,SAAS,sBAAsB;IAC7B,MAAM,YAAY,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAA;IACpD,IAAI,CAAC,YAAY;QACf,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAA;IAC/D,OAAO,YAAY,CAAA;AACrB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { StyleProps } from '../../types/Style.ts';
|
|
2
|
+
import { Toggle as BaseToggle } from '@base-ui/react/toggle';
|
|
3
|
+
import type { ReactElement } from 'react';
|
|
4
|
+
import type { ButtonProps } from '../button/index.tsx';
|
|
5
|
+
import type { LucideProps } from 'lucide-react';
|
|
6
|
+
/**
|
|
7
|
+
* Root is the interactive toggle button. ActiveIcon and InactiveIcon switch automatically with pressed state; do not conditionally render them yourself.
|
|
8
|
+
*
|
|
9
|
+
* @example Complete composition
|
|
10
|
+
* import { Toggle } from '@central-ui/react'
|
|
11
|
+
* import { Heart, HeartOff } from 'lucide-react'
|
|
12
|
+
*
|
|
13
|
+
* function Example() {
|
|
14
|
+
* return (
|
|
15
|
+
* <Toggle.Root aria-label="Favorite">
|
|
16
|
+
* <Toggle.ActiveIcon>
|
|
17
|
+
* <Heart fill="currentColor" />
|
|
18
|
+
* </Toggle.ActiveIcon>
|
|
19
|
+
* <Toggle.InactiveIcon>
|
|
20
|
+
* <HeartOff />
|
|
21
|
+
* </Toggle.InactiveIcon>
|
|
22
|
+
* </Toggle.Root>
|
|
23
|
+
* )
|
|
24
|
+
* }
|
|
25
|
+
*/
|
|
26
|
+
export declare const Root: import("react").ForwardRefExoticComponent<Omit<Omit<BaseToggle.Props<string>, "className"> & {
|
|
27
|
+
className?: string;
|
|
28
|
+
/** Choose the shared size for the visible parts in this composition. */
|
|
29
|
+
size?: ButtonProps["size"];
|
|
30
|
+
} & StyleProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
/** Render beside InactiveIcon inside Root. It automatically appears only while pressed; supply the decorative icon without another visibility condition. */
|
|
32
|
+
export declare const ActiveIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps & {
|
|
33
|
+
/** Supply the decorative icon; the wrapper forwards the relevant state and preserves its classes. */
|
|
34
|
+
children: ReactElement<LucideProps>;
|
|
35
|
+
} & StyleProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
36
|
+
/** Render beside ActiveIcon inside Root. It automatically appears only while unpressed; supply the decorative icon without another visibility condition. */
|
|
37
|
+
export declare const InactiveIcon: import("react").ForwardRefExoticComponent<Omit<LucideProps & {
|
|
38
|
+
/** Supply the decorative icon; the wrapper forwards the relevant state and preserves its classes. */
|
|
39
|
+
children: ReactElement<LucideProps>;
|
|
40
|
+
} & StyleProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/toggle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAQ5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,IAAI;gBAGD,MAAM;IAClB,wEAAwE;WACjE,WAAW,CAAC,MAAM,CAAC;0EAyC5B,CAAA;AACF,4JAA4J;AAC5J,eAAO,MAAM,UAAU;IAGnB,qGAAqG;cAC3F,YAAY,CAAC,WAAW,CAAC;sEAkBrC,CAAA;AACF,4JAA4J;AAC5J,eAAO,MAAM,YAAY;IAGrB,qGAAqG;cAC3F,YAAY,CAAC,WAAW,CAAC;sEAkBrC,CAAA"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Toggle as BaseToggle } from '@base-ui/react/toggle';
|
|
3
|
+
import { cloneElement, createContext, forwardRef, useContext, useState, } from 'react';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
/**
|
|
6
|
+
* Root is the interactive toggle button. ActiveIcon and InactiveIcon switch automatically with pressed state; do not conditionally render them yourself.
|
|
7
|
+
*
|
|
8
|
+
* @example Complete composition
|
|
9
|
+
* import { Toggle } from '@central-ui/react'
|
|
10
|
+
* import { Heart, HeartOff } from 'lucide-react'
|
|
11
|
+
*
|
|
12
|
+
* function Example() {
|
|
13
|
+
* return (
|
|
14
|
+
* <Toggle.Root aria-label="Favorite">
|
|
15
|
+
* <Toggle.ActiveIcon>
|
|
16
|
+
* <Heart fill="currentColor" />
|
|
17
|
+
* </Toggle.ActiveIcon>
|
|
18
|
+
* <Toggle.InactiveIcon>
|
|
19
|
+
* <HeartOff />
|
|
20
|
+
* </Toggle.InactiveIcon>
|
|
21
|
+
* </Toggle.Root>
|
|
22
|
+
* )
|
|
23
|
+
* }
|
|
24
|
+
*/
|
|
25
|
+
export const Root = forwardRef(function Root({ children, className, disableStyle, size = 'medium', pressed, defaultPressed = false, onPressedChange, disabled = false, ...props }, ref) {
|
|
26
|
+
const [pressedInternalState, setPressedInternalState] = useState(defaultPressed);
|
|
27
|
+
return (_jsx(BaseToggle, { ...props, ref: ref, pressed: pressed, defaultPressed: defaultPressed, disabled: disabled, "data-size": size, "data-component": "toggle-root", "data-style-disabled": disableStyle ? '' : undefined, onPressedChange: (next, details) => {
|
|
28
|
+
onPressedChange?.(next, details);
|
|
29
|
+
if (!details.isCanceled)
|
|
30
|
+
setPressedInternalState(next);
|
|
31
|
+
}, className: className, children: _jsx(ToggleContext.Provider, { value: { pressed: pressed ?? pressedInternalState, disabled, size }, children: children }) }));
|
|
32
|
+
});
|
|
33
|
+
/** Render beside InactiveIcon inside Root. It automatically appears only while pressed; supply the decorative icon without another visibility condition. */
|
|
34
|
+
export const ActiveIcon = forwardRef(function ActiveIcon({ disableStyle, children, className, ...props }, ref) {
|
|
35
|
+
const { pressed, disabled, size } = useToggleContext();
|
|
36
|
+
if (!pressed)
|
|
37
|
+
return null;
|
|
38
|
+
return cloneElement(children, {
|
|
39
|
+
...props,
|
|
40
|
+
ref,
|
|
41
|
+
'aria-hidden': true,
|
|
42
|
+
'data-size': size,
|
|
43
|
+
'data-pressed': pressed ? '' : undefined,
|
|
44
|
+
'data-disabled': disabled ? '' : undefined,
|
|
45
|
+
...{
|
|
46
|
+
'data-component': 'toggle-activeicon',
|
|
47
|
+
'data-style-disabled': disableStyle ? '' : undefined,
|
|
48
|
+
},
|
|
49
|
+
className: twMerge(children.props.className, className),
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
/** Render beside ActiveIcon inside Root. It automatically appears only while unpressed; supply the decorative icon without another visibility condition. */
|
|
53
|
+
export const InactiveIcon = forwardRef(function InactiveIcon({ disableStyle, children, className, ...props }, ref) {
|
|
54
|
+
const { pressed, disabled, size } = useToggleContext();
|
|
55
|
+
if (pressed)
|
|
56
|
+
return null;
|
|
57
|
+
return cloneElement(children, {
|
|
58
|
+
...props,
|
|
59
|
+
ref,
|
|
60
|
+
'aria-hidden': true,
|
|
61
|
+
'data-size': size,
|
|
62
|
+
'data-pressed': pressed ? '' : undefined,
|
|
63
|
+
'data-disabled': disabled ? '' : undefined,
|
|
64
|
+
...{
|
|
65
|
+
'data-component': 'toggle-inactiveicon',
|
|
66
|
+
'data-style-disabled': disableStyle ? '' : undefined,
|
|
67
|
+
},
|
|
68
|
+
className: twMerge(children.props.className, className),
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
const ToggleContext = createContext(null);
|
|
72
|
+
function useToggleContext() {
|
|
73
|
+
const context = useContext(ToggleContext);
|
|
74
|
+
if (!context)
|
|
75
|
+
throw new Error('Toggle icons must be inside Toggle.Root');
|
|
76
|
+
return context;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/toggle/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,EACL,YAAY,EACZ,aAAa,EACb,UAAU,EACV,UAAU,EACV,QAAQ,GACT,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAIxC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,UAAU,CAO5B,SAAS,IAAI,CACb,EACE,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,IAAI,GAAG,QAAQ,EACf,OAAO,EACP,cAAc,GAAG,KAAK,EACtB,eAAe,EACf,QAAQ,GAAG,KAAK,EAChB,GAAG,KAAK,EACT,EACD,GAAG;IAEH,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GACnD,QAAQ,CAAC,cAAc,CAAC,CAAA;IAC1B,OAAO,CACL,KAAC,UAAU,OACL,KAAK,EACT,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,eACP,IAAI,oBACA,aAAa,yBACP,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAClD,eAAe,EAAE,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S,YAAY,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG;IAC1E,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,gBAAgB,EAAE,CAAA;IACtD,IAAI,OAAO;QAAE,OAAO,IAAI,CAAA;IACxB,OAAO,YAAY,CAAC,QAAQ,EAAE;QAC5B,GAAG,KAAK;QACR,GAAG;QACH,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACxC,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QAC1C,GAAG;YACD,gBAAgB,EAAE,qBAAqB;YACvC,qBAAqB,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;SACrD;QACD,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC;KACzC,CAAC,CAAA;AACnB,CAAC,CAAC,CAAA;AACF,MAAM,aAAa,GAAG,aAAa,CAIzB,IAAI,CAAC,CAAA;AACf,SAAS,gBAAgB;IACvB,MAAM,OAAO,GAAG,UAAU,CAAC,aAAa,CAAC,CAAA;IACzC,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IACxE,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { StyleProps } from '../../types/Style.ts';
|
|
2
|
+
import { Tooltip as BaseTooltip } from '@base-ui/react/tooltip';
|
|
3
|
+
import type { ComponentPropsWithRef, ReactElement } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Wrap the target element with OpenHandler and keep Popup in the same Root. Popup already includes its portal and positioner. PopupText supplies the help text; Arrow is optional.
|
|
6
|
+
*
|
|
7
|
+
* @example Complete composition
|
|
8
|
+
* import { Button, Tooltip } from '@central-ui/react'
|
|
9
|
+
*
|
|
10
|
+
* function Example() {
|
|
11
|
+
* return (
|
|
12
|
+
* <Tooltip.Root>
|
|
13
|
+
* <Tooltip.OpenHandler>
|
|
14
|
+
* <Button.default variant="secondary">Delivery information</Button.default>
|
|
15
|
+
* </Tooltip.OpenHandler>
|
|
16
|
+
* <Tooltip.Popup>
|
|
17
|
+
* <Tooltip.PopupText>Usually arrives within three days.</Tooltip.PopupText>
|
|
18
|
+
* <Tooltip.Arrow />
|
|
19
|
+
* </Tooltip.Popup>
|
|
20
|
+
* </Tooltip.Root>
|
|
21
|
+
* )
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* @example Place help below its target
|
|
25
|
+
* // Keep the same OpenHandler and Root.
|
|
26
|
+
* ;<Tooltip.Popup side="bottom">
|
|
27
|
+
* <Tooltip.PopupText>Delivery details</Tooltip.PopupText>
|
|
28
|
+
* </Tooltip.Popup>
|
|
29
|
+
*/
|
|
30
|
+
export declare const Root: <Payload>(props: BaseTooltip.Root.Props<Payload>) => React.JSX.Element;
|
|
31
|
+
/** Behavior only: give your child control this action. Style the child itself; this wrapper has no preset appearance or disableStyle prop. */
|
|
32
|
+
export declare const OpenHandler: import("react").ForwardRefExoticComponent<Omit<Omit<BaseTooltip.Trigger.Props<unknown>, "children" | "className" | "render"> & {
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Supply your own accessible control. It receives the behavior; its own className owns the appearance. */
|
|
35
|
+
children: ReactElement;
|
|
36
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
export type PopupProps = Omit<ComponentPropsWithRef<typeof BaseTooltip.Popup>, 'className'> & {
|
|
38
|
+
className?: string;
|
|
39
|
+
} & Pick<BaseTooltip.Portal.Props, 'container' | 'keepMounted'> & Pick<BaseTooltip.Positioner.Props, 'anchor' | 'positionMethod' | 'side' | 'sideOffset' | 'align' | 'alignOffset' | 'collisionBoundary' | 'collisionPadding' | 'sticky' | 'arrowPadding' | 'disableAnchorTracking' | 'collisionAvoidance'> & StyleProps;
|
|
40
|
+
/** Already includes the portal and positioner. Keep it in the matching Root and let the native open state control visibility. */
|
|
41
|
+
export declare function Popup({ disableStyle, container, keepMounted, anchor, positionMethod, side, sideOffset, align, alignOffset, collisionBoundary, collisionPadding, sticky, arrowPadding, disableAnchorTracking, collisionAvoidance, className, style, ...props }: PopupProps & StyleProps): import("react").JSX.Element;
|
|
42
|
+
export declare const PopupText: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & StyleProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
43
|
+
export declare const Arrow: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").SVGProps<SVGSVGElement>, "children" | "dangerouslySetInnerHTML"> & StyleProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAE/D,OAAO,KAAK,EAAkB,qBAAqB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAGhF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,IAAI,wEAAmB,CAAA;AACpC,8IAA8I;AAC9I,eAAO,MAAM,WAAW;gBAGR,MAAM;IAClB,2GAA2G;cACjG,YAAY;6DAIxB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,qBAAqB,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,EAC/C,WAAW,CACZ,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAC7B,WAAW,CAAC,MAAM,CAAC,KAAK,EACxB,WAAW,GAAG,aAAa,CAC5B,GACD,IAAI,CACF,WAAW,CAAC,UAAU,CAAC,KAAK,EAC1B,QAAQ,GACR,gBAAgB,GAChB,MAAM,GACN,YAAY,GACZ,OAAO,GACP,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,QAAQ,GACR,cAAc,GACd,uBAAuB,GACvB,oBAAoB,CACvB,GACD,UAAU,CAAA;AAEZ,iIAAiI;AACjI,wBAAgB,KAAK,CAAC,EACpB,YAAY,EACZ,SAAS,EACT,WAAW,EACX,MAAM,EACN,cAAc,EACd,IAAY,EACZ,UAAc,EACd,KAAe,EACf,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,UAAU,+BAoCzB;AAED,eAAO,MAAM,SAAS,0NAapB,CAAA;AAEF,eAAO,MAAM,KAAK,2MAoChB,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as BaseTooltip } from '@base-ui/react/tooltip';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
/**
|
|
5
|
+
* Wrap the target element with OpenHandler and keep Popup in the same Root. Popup already includes its portal and positioner. PopupText supplies the help text; Arrow is optional.
|
|
6
|
+
*
|
|
7
|
+
* @example Complete composition
|
|
8
|
+
* import { Button, Tooltip } from '@central-ui/react'
|
|
9
|
+
*
|
|
10
|
+
* function Example() {
|
|
11
|
+
* return (
|
|
12
|
+
* <Tooltip.Root>
|
|
13
|
+
* <Tooltip.OpenHandler>
|
|
14
|
+
* <Button.default variant="secondary">Delivery information</Button.default>
|
|
15
|
+
* </Tooltip.OpenHandler>
|
|
16
|
+
* <Tooltip.Popup>
|
|
17
|
+
* <Tooltip.PopupText>Usually arrives within three days.</Tooltip.PopupText>
|
|
18
|
+
* <Tooltip.Arrow />
|
|
19
|
+
* </Tooltip.Popup>
|
|
20
|
+
* </Tooltip.Root>
|
|
21
|
+
* )
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* @example Place help below its target
|
|
25
|
+
* // Keep the same OpenHandler and Root.
|
|
26
|
+
* ;<Tooltip.Popup side="bottom">
|
|
27
|
+
* <Tooltip.PopupText>Delivery details</Tooltip.PopupText>
|
|
28
|
+
* </Tooltip.Popup>
|
|
29
|
+
*/
|
|
30
|
+
export const Root = BaseTooltip.Root;
|
|
31
|
+
/** Behavior only: give your child control this action. Style the child itself; this wrapper has no preset appearance or disableStyle prop. */
|
|
32
|
+
export const OpenHandler = forwardRef(function OpenHandler({ children, ...props }, ref) {
|
|
33
|
+
return _jsx(BaseTooltip.Trigger, { ...props, ref: ref, render: children });
|
|
34
|
+
});
|
|
35
|
+
/** Already includes the portal and positioner. Keep it in the matching Root and let the native open state control visibility. */
|
|
36
|
+
export function Popup({ disableStyle, container, keepMounted, anchor, positionMethod, side = 'top', sideOffset = 8, align = 'start', alignOffset, collisionBoundary, collisionPadding, sticky, arrowPadding, disableAnchorTracking, collisionAvoidance, className, style, ...props }) {
|
|
37
|
+
const baseStyle = {
|
|
38
|
+
maxHeight: 'var(--available-height)',
|
|
39
|
+
maxWidth: 'min(24rem, var(--available-width))',
|
|
40
|
+
};
|
|
41
|
+
return (_jsx(BaseTooltip.Portal, { container: container, keepMounted: keepMounted, children: _jsx(BaseTooltip.Positioner, { anchor: anchor, positionMethod: positionMethod, side: side, sideOffset: sideOffset, align: align, alignOffset: alignOffset, collisionBoundary: collisionBoundary, collisionPadding: collisionPadding, sticky: sticky, arrowPadding: arrowPadding, disableAnchorTracking: disableAnchorTracking, collisionAvoidance: collisionAvoidance, style: { zIndex: 80, maxWidth: 'var(--available-width)' }, children: _jsx(BaseTooltip.Popup, { ...props, "data-component": "tooltip-popup", "data-style-disabled": disableStyle ? '' : undefined, className: className, style: typeof style === 'function'
|
|
42
|
+
? (state) => ({ ...baseStyle, ...style(state) })
|
|
43
|
+
: { ...baseStyle, ...style } }) }) }));
|
|
44
|
+
}
|
|
45
|
+
export const PopupText = forwardRef(function PopupText({ disableStyle, className, ...props }, ref) {
|
|
46
|
+
return (_jsx("span", { ...props, ref: ref, "data-component": "tooltip-popuptext", "data-style-disabled": disableStyle ? '' : undefined, className: className }));
|
|
47
|
+
});
|
|
48
|
+
export const Arrow = forwardRef(function Arrow({ disableStyle, className, style, ...props }, ref) {
|
|
49
|
+
return (_jsxs(BaseTooltip.Arrow, { style: style, render: _jsx("svg", { ...props, ref: ref, "aria-hidden": true, width: "20", height: "10", viewBox: "0 0 20 10" }), "data-component": "tooltip-arrow", "data-style-disabled": disableStyle ? '' : undefined, className: className, children: [_jsx("path", { d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z", "data-component": "tooltip-arrow-1" }), _jsx("path", { d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z", "data-component": "tooltip-arrow-2" }), _jsx("path", { d: "M10.3333 3.34539L5.47654 7.71648C4.55842 8.54279 3.36693 9 2.13172 9H0V8H2.13172C3.11989 8 4.07308 7.63423 4.80758 6.97318L9.66437 2.60207C10.0447 2.25979 10.622 2.2598 11.0023 2.60207L15.8591 6.97318C16.5936 7.63423 17.5468 8 18.5349 8H20V9H18.5349C17.2998 9 16.1083 8.54278 15.1901 7.71648L10.3333 3.34539Z", "data-component": "tooltip-arrow-3" })] }));
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tooltip/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAIlC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAA;AACpC,8IAA8I;AAC9I,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAOnC,SAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG;IAChD,OAAO,KAAC,WAAW,CAAC,OAAO,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAI,CAAA;AACvE,CAAC,CAAC,CAAA;AA0BF,iIAAiI;AACjI,MAAM,UAAU,KAAK,CAAC,EACpB,YAAY,EACZ,SAAS,EACT,WAAW,EACX,MAAM,EACN,cAAc,EACd,IAAI,GAAG,KAAK,EACZ,UAAU,GAAG,CAAC,EACd,KAAK,GAAG,OAAO,EACf,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,qBAAqB,EACrB,kBAAkB,EAClB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACgB;IACxB,MAAM,SAAS,GAAG;QAChB,SAAS,EAAE,yBAAyB;QACpC,QAAQ,EAAE,oCAAoC;KAC/C,CAAA;IACD,OAAO,CACL,KAAC,WAAW,CAAC,MAAM,IAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,YAChE,KAAC,WAAW,CAAC,UAAU,IACrB,MAAM,EAAE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E,OAAO,CACL,MAAC,WAAW,CAAC,KAAK,IAChB,KAAK,EAAE,KAAK,EACZ,MAAM,EACJ,iBACM,KAAK,EACT,GAAG,EAAE,GAAG,uBAER,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,GACnB,oBAEW,eAAe,yBACT,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EAClD,SAAS,EAAE,SAAS,aAEpB,eACE,CAAC,EAAC,iMAAiM,oBACpL,iBAAiB,GAChC,EACF,eACE,CAAC,EAAC,kSAAkS,oBACrR,iBAAiB,GAChC,EACF,eACE,CAAC,EAAC,sTAAsT,oBACzS,iBAAiB,GAChC,IACgB,CACrB,CAAA;AACH,CAAC,CAAC,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export * as Banner from './components/banner/index.tsx';
|
|
2
|
+
export * as Accordion from './components/accordion/index.tsx';
|
|
3
|
+
export * as Autocomplete from './components/autocomplete/index.tsx';
|
|
4
|
+
export * as Avatar from './components/avatar/index.tsx';
|
|
5
|
+
export * as Checkbox from './components/checkbox/index.tsx';
|
|
6
|
+
export * as Combobox from './components/combobox/index.tsx';
|
|
7
|
+
export * as DatePicker from './components/datepicker/index.tsx';
|
|
8
|
+
export * as Dialog from './components/dialog/index.tsx';
|
|
9
|
+
export * as Drawer from './components/drawer/index.tsx';
|
|
10
|
+
export * as FileUpload from './components/fileupload/index.tsx';
|
|
11
|
+
export * as Input from './components/input/index.tsx';
|
|
12
|
+
export * as Menu from './components/menu/index.tsx';
|
|
13
|
+
export * as NumberInput from './components/numberinput/index.tsx';
|
|
14
|
+
export * as PasswordInput from './components/passwordinput/index.tsx';
|
|
15
|
+
export * as OtpInput from './components/otpinput/index.tsx';
|
|
16
|
+
export * as Popover from './components/popover/index.tsx';
|
|
17
|
+
export * as Radio from './components/radio/index.tsx';
|
|
18
|
+
export * as RatingInput from './components/ratinginput/index.tsx';
|
|
19
|
+
export * as Splitter from './components/splitter/index.tsx';
|
|
20
|
+
export * as Select from './components/select/index.tsx';
|
|
21
|
+
export * as Slider from './components/slider/index.tsx';
|
|
22
|
+
export * as Stepper from './components/stepper/index.tsx';
|
|
23
|
+
export * as Switch from './components/switch/index.tsx';
|
|
24
|
+
export * as Tabs from './components/tabs/index.tsx';
|
|
25
|
+
export * as Textarea from './components/textarea/index.tsx';
|
|
26
|
+
export * as Toast from './components/toast/index.tsx';
|
|
27
|
+
export * as Toggle from './components/toggle/index.tsx';
|
|
28
|
+
export * as Tooltip from './components/tooltip/index.tsx';
|
|
29
|
+
export * as Badge from './components/badge/index.tsx';
|
|
30
|
+
export * as Breadcrumb from './components/breadcrumb/index.tsx';
|
|
31
|
+
export * as Button from './components/button/index.tsx';
|
|
32
|
+
export * as Card from './components/card/index.tsx';
|
|
33
|
+
export * as Divider from './components/divider/index.tsx';
|
|
34
|
+
export * as Empty from './components/empty/index.tsx';
|
|
35
|
+
export * as Form from './components/form/index.tsx';
|
|
36
|
+
export * as Metric from './components/metric/index.tsx';
|
|
37
|
+
export * as Page from './components/page/index.tsx';
|
|
38
|
+
export * as Skeleton from './components/skeleton/index.tsx';
|
|
39
|
+
export * as Spinner from './components/spinner/index.tsx';
|
|
40
|
+
export * as Table from './components/table/index.tsx';
|
|
41
|
+
export * as Chip from './components/chip/index.tsx';
|
|
42
|
+
export * as TextLink from './components/textlink/index.tsx';
|
|
43
|
+
export type { ToneProps } from './types/Tone.ts';
|
|
44
|
+
export { useVirtualizedCombobox, FilteredItemsSync as ComboboxFilteredItemsSync, } from './utils/virtualization/useVirtualizedCombobox.ts';
|
|
45
|
+
export type { UseVirtualizedComboboxOptions } from './utils/virtualization/useVirtualizedCombobox.ts';
|
|
46
|
+
export { useVirtualizedAutocomplete, FilteredItemsSync as AutocompleteFilteredItemsSync, } from './utils/virtualization/useVirtualizedAutocomplete.ts';
|
|
47
|
+
export type { UseVirtualizedAutocompleteOptions } from './utils/virtualization/useVirtualizedAutocomplete.ts';
|
|
48
|
+
export { useVirtualizedTable } from './utils/virtualization/useVirtualizedTable.ts';
|
|
49
|
+
export type { UseVirtualizedTableOptions } from './utils/virtualization/useVirtualizedTable.ts';
|
|
50
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AACvD,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAC7D,OAAO,KAAK,YAAY,MAAM,qCAAqC,CAAA;AACnE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AACvD,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAA;AAC3D,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAA;AAC3D,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AACvD,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,KAAK,MAAM,8BAA8B,CAAA;AACrD,OAAO,KAAK,IAAI,MAAM,6BAA6B,CAAA;AACnD,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,aAAa,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAA;AAC3D,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,8BAA8B,CAAA;AACrD,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAA;AAC3D,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AACvD,OA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AE,MAAM,sDAAsD,CAAA;AAC7G,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;AACnF,YAAY,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export * as Banner from "./components/banner/index.js";
|
|
2
|
+
export * as Accordion from "./components/accordion/index.js";
|
|
3
|
+
export * as Autocomplete from "./components/autocomplete/index.js";
|
|
4
|
+
export * as Avatar from "./components/avatar/index.js";
|
|
5
|
+
export * as Checkbox from "./components/checkbox/index.js";
|
|
6
|
+
export * as Combobox from "./components/combobox/index.js";
|
|
7
|
+
export * as DatePicker from "./components/datepicker/index.js";
|
|
8
|
+
export * as Dialog from "./components/dialog/index.js";
|
|
9
|
+
export * as Drawer from "./components/drawer/index.js";
|
|
10
|
+
export * as FileUpload from "./components/fileupload/index.js";
|
|
11
|
+
export * as Input from "./components/input/index.js";
|
|
12
|
+
export * as Menu from "./components/menu/index.js";
|
|
13
|
+
export * as NumberInput from "./components/numberinput/index.js";
|
|
14
|
+
export * as PasswordInput from "./components/passwordinput/index.js";
|
|
15
|
+
export * as OtpInput from "./components/otpinput/index.js";
|
|
16
|
+
export * as Popover from "./components/popover/index.js";
|
|
17
|
+
export * as Radio from "./components/radio/index.js";
|
|
18
|
+
export * as RatingInput from "./components/ratinginput/index.js";
|
|
19
|
+
export * as Splitter from "./components/splitter/index.js";
|
|
20
|
+
export * as Select from "./components/select/index.js";
|
|
21
|
+
export * as Slider from "./components/slider/index.js";
|
|
22
|
+
export * as Stepper from "./components/stepper/index.js";
|
|
23
|
+
export * as Switch from "./components/switch/index.js";
|
|
24
|
+
export * as Tabs from "./components/tabs/index.js";
|
|
25
|
+
export * as Textarea from "./components/textarea/index.js";
|
|
26
|
+
export * as Toast from "./components/toast/index.js";
|
|
27
|
+
export * as Toggle from "./components/toggle/index.js";
|
|
28
|
+
export * as Tooltip from "./components/tooltip/index.js";
|
|
29
|
+
export * as Badge from "./components/badge/index.js";
|
|
30
|
+
export * as Breadcrumb from "./components/breadcrumb/index.js";
|
|
31
|
+
export * as Button from "./components/button/index.js";
|
|
32
|
+
export * as Card from "./components/card/index.js";
|
|
33
|
+
export * as Divider from "./components/divider/index.js";
|
|
34
|
+
export * as Empty from "./components/empty/index.js";
|
|
35
|
+
export * as Form from "./components/form/index.js";
|
|
36
|
+
export * as Metric from "./components/metric/index.js";
|
|
37
|
+
export * as Page from "./components/page/index.js";
|
|
38
|
+
export * as Skeleton from "./components/skeleton/index.js";
|
|
39
|
+
export * as Spinner from "./components/spinner/index.js";
|
|
40
|
+
export * as Table from "./components/table/index.js";
|
|
41
|
+
export * as Chip from "./components/chip/index.js";
|
|
42
|
+
export * as TextLink from "./components/textlink/index.js";
|
|
43
|
+
export { useVirtualizedCombobox, FilteredItemsSync as ComboboxFilteredItemsSync, } from "./utils/virtualization/useVirtualizedCombobox.js";
|
|
44
|
+
export { useVirtualizedAutocomplete, FilteredItemsSync as AutocompleteFilteredItemsSync, } from "./utils/virtualization/useVirtualizedAutocomplete.js";
|
|
45
|
+
export { useVirtualizedTable } from "./utils/virtualization/useVirtualizedTable.js";
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,8BAA+B,CAAA;AACvD,OAAO,KAAK,SAAS,MAAM,iCAAkC,CAAA;AAC7D,OAAO,KAAK,YAAY,MAAM,oCAAqC,CAAA;AACnE,OAAO,KAAK,MAAM,MAAM,8BAA+B,CAAA;AACvD,OAAO,KAAK,QAAQ,MAAM,gCAAiC,CAAA;AAC3D,OAAO,KAAK,QAAQ,MAAM,gCAAiC,CAAA;AAC3D,OAAO,KAAK,UAAU,MAAM,kCAAmC,CAAA;AAC/D,OAAO,KAAK,MAAM,MAAM,8BAA+B,CAAA;AACvD,OAAO,K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A+B,CAAA;AACvD,OAAO,KAAK,IAAI,MAAM,4BAA6B,CAAA;AACnD,OAAO,KAAK,QAAQ,MAAM,gCAAiC,CAAA;AAC3D,OAAO,KAAK,OAAO,MAAM,+BAAgC,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,6BAA8B,CAAA;AACrD,OAAO,KAAK,IAAI,MAAM,4BAA6B,CAAA;AACnD,OAAO,KAAK,QAAQ,MAAM,gCAAiC,CAAA;AAE3D,OAAO,EACL,sBAAsB,EACtB,iBAAiB,IAAI,yBAAyB,GAC/C,MAAM,kDAAkD,CAAA;AAEzD,OAAO,EACL,0BAA0B,EAC1B,iBAAiB,IAAI,6BAA6B,GACnD,MAAM,sDAAsD,CAAA;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Styling controls shared by the library's visible parts. */
|
|
2
|
+
export type StyleProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Disables preset styling for this element.
|
|
5
|
+
* Rarely needed: prefer className for normal overrides. Use only when explicitly
|
|
6
|
+
* choosing to redesign this part, or when extensive overrides justify starting
|
|
7
|
+
* from an unstyled baseline instead of overriding the preset.
|
|
8
|
+
* Your className and core inline styles still apply.
|
|
9
|
+
* Other parts and the preset's global styles remain active.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
disableStyle?: boolean;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=Style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Style.d.ts","sourceRoot":"","sources":["../../src/types/Style.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Style.js","sourceRoot":"","sources":["../../src/types/Style.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tone.d.ts","sourceRoot":"","sources":["../../src/types/Tone.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;CACvC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tone.js","sourceRoot":"","sources":["../../src/types/Tone.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArkStateToDataAttributes.d.ts","sourceRoot":"","sources":["../../src/utils/ArkStateToDataAttributes.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM;;EASrD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function arkStateToDataAttributes(state) {
|
|
2
|
+
return Object.fromEntries(Object.entries(state)
|
|
3
|
+
.filter(([, value]) => typeof value === 'boolean' || typeof value === 'string' || typeof value === 'number')
|
|
4
|
+
.map(([key, value]) => [
|
|
5
|
+
`data-${key.toLowerCase()}`,
|
|
6
|
+
typeof value === 'boolean' ? value || undefined : value,
|
|
7
|
+
]));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ArkStateToDataAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArkStateToDataAttributes.js","sourceRoot":"","sources":["../../src/utils/ArkStateToDataAttributes.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,wBAAwB,CAAC,KAAa;IACpD,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;SAClB,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC;SAC3G,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;QACrB,QAAQ,GAAG,CAAC,WAAW,EAAE,EAAE;QAC3B,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK;KACxD,CAAC,CACL,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tone.d.ts","sourceRoot":"","sources":["../../src/utils/Tone.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,uEAAuB,CAAA;AAEhD,wBAAgB,cAAc,gDAE7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tone.js","sourceRoot":"","sources":["../../src/utils/Tone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAC,UAAU,EAAE,MAAM,OAAO,CAAA;AAGhD,MAAM,WAAW,GAAG,aAAa,CAAoB,SAAS,CAAC,CAAA;AAE/D,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAA;AAEhD,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,WAAW,CAAC,CAAA;AAChC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MouseEventHandler } from 'react';
|
|
2
|
+
/** Forward clicks on an input group to its input without calling the group's handler twice. */
|
|
3
|
+
export declare function useForwardClickToInput<T extends HTMLElement>(selector: string, onClick?: MouseEventHandler<T>): MouseEventHandler<T>;
|
|
4
|
+
//# sourceMappingURL=useForwardClickToInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useForwardClickToInput.d.ts","sourceRoot":"","sources":["../../src/utils/useForwardClickToInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG9C,+FAA+F;AAC/F,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,WAAW,EAC1D,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC7B,iBAAiB,CAAC,CAAC,CAAC,CAoBtB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
2
|
+
/** Forward clicks on an input group to its input without calling the group's handler twice. */
|
|
3
|
+
export function useForwardClickToInput(selector, onClick) {
|
|
4
|
+
const forwardingClick = useRef(false);
|
|
5
|
+
return (event) => {
|
|
6
|
+
if (forwardingClick.current)
|
|
7
|
+
return;
|
|
8
|
+
onClick?.(event);
|
|
9
|
+
if (event.defaultPrevented)
|
|
10
|
+
return;
|
|
11
|
+
if (event.target instanceof Element && event.target.closest('button, [data-part="item"]'))
|
|
12
|
+
return;
|
|
13
|
+
const input = event.currentTarget.querySelector(selector);
|
|
14
|
+
if (!input || (event.target instanceof Element && event.target.matches(selector)))
|
|
15
|
+
return;
|
|
16
|
+
forwardingClick.current = true;
|
|
17
|
+
try {
|
|
18
|
+
input.click();
|
|
19
|
+
}
|
|
20
|
+
finally {
|
|
21
|
+
forwardingClick.current = false;
|
|
22
|
+
}
|
|
23
|
+
if (document.activeElement !== input)
|
|
24
|
+
input.focus();
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=useForwardClickToInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useForwardClickToInput.js","sourceRoot":"","sources":["../../src/utils/useForwardClickToInput.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE9B,+FAA+F;AAC/F,MAAM,UAAU,sBAAsB,CACpC,QAAgB,EAChB,OAA8B;IAE9B,MAAM,eAAe,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAErC,OAAO,CAAC,KAAK,EAAE,EAAE;QACf,IAAI,eAAe,CAAC,OAAO;YAAE,OAAM;QACnC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;QAChB,IAAI,KAAK,CAAC,gBAAgB;YAAE,OAAM;QAClC,IAAI,KAAK,CAAC,MAAM,YAAY,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC;YAAE,OAAM;QAEjG,MAAM,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,aAAa,CAAyC,QAAQ,CAAC,CAAA;QACjG,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,YAAY,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAAE,OAAM;QAEzF,eAAe,CAAC,OAAO,GAAG,IAAI,CAAA;QAC9B,IAAI,CAAC;YACH,KAAK,CAAC,KAAK,EAAE,CAAA;QACf,CAAC;gBAAS,CAAC;YACT,eAAe,CAAC,OAAO,GAAG,KAAK,CAAA;QACjC,CAAC;QACD,IAAI,QAAQ,CAAC,aAAa,KAAK,KAAK;YAAE,KAAK,CAAC,KAAK,EAAE,CAAA;IACrD,CAAC,CAAA;AACH,CAAC"}
|