@chotot/clad-ui 3.0.0-next.6 → 3.0.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/CHANGELOG.md +32 -0
- package/README.md +9 -9
- package/dist/{chunk-Bmb41Sf3.cjs → _virtual/_rolldown/runtime.cjs} +1 -1
- package/dist/brand/ChototLogoText.cjs +1 -0
- package/dist/brand/ChototLogoText.es.js +15 -0
- package/dist/brand/CtC2C.cjs +1 -0
- package/dist/brand/CtC2C.es.js +18 -0
- package/dist/brand/CtProperty.cjs +1 -0
- package/dist/brand/CtProperty.es.js +204 -0
- package/dist/brand/CtVehicle.cjs +1 -0
- package/dist/brand/CtVehicle.es.js +70 -0
- package/dist/brand/Tot.cjs +1 -0
- package/dist/brand/Tot.es.js +17 -0
- package/dist/components/Announcer/Announcer.cjs +1 -0
- package/dist/components/Announcer/Announcer.es.js +100 -0
- package/dist/components/Announcer/announcer.styles.cjs +1 -0
- package/dist/components/Announcer/announcer.styles.es.js +24 -0
- package/dist/components/Badge/Badge.cjs +1 -0
- package/dist/components/Badge/Badge.es.js +83 -0
- package/dist/components/Badge/badge.styles.cjs +1 -0
- package/dist/components/Badge/badge.styles.es.js +83 -0
- package/dist/components/Box/Box.cjs +1 -0
- package/dist/components/Box/Box.es.js +72 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.cjs +1 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.es.js +17 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.es.js +44 -0
- package/dist/components/Breadcrumbs/breadcrumbs.styles.cjs +1 -0
- package/dist/components/Breadcrumbs/breadcrumbs.styles.es.js +5 -0
- package/dist/components/Button/Button.cjs +1 -0
- package/dist/components/Button/Button.es.js +41 -0
- package/dist/components/Button/ButtonLink.cjs +1 -0
- package/dist/components/Button/ButtonLink.es.js +5 -0
- package/dist/components/Button/GhostButton.cjs +1 -0
- package/dist/components/Button/GhostButton.es.js +25 -0
- package/dist/components/Button/IconButton.cjs +1 -0
- package/dist/components/Button/IconButton.es.js +13 -0
- package/dist/components/Button/button.styles.cjs +1 -0
- package/dist/components/Button/button.styles.es.js +100 -0
- package/dist/components/Checkbox/Checkbox.cjs +1 -0
- package/dist/components/Checkbox/Checkbox.es.js +43 -0
- package/dist/components/Checkbox/checkbox.styles.cjs +1 -0
- package/dist/components/Checkbox/checkbox.styles.es.js +15 -0
- package/dist/components/Chip/Chip.cjs +1 -0
- package/dist/components/Chip/Chip.es.js +35 -0
- package/dist/components/Chip/chip.styles.cjs +1 -0
- package/dist/components/Chip/chip.styles.es.js +33 -0
- package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -0
- package/dist/components/CurrencyInput/CurrencyInput.es.js +142 -0
- package/dist/components/CurrencyInput/currency-input.styles.cjs +1 -0
- package/dist/components/CurrencyInput/currency-input.styles.es.js +13 -0
- package/dist/components/CurrencyInput/utils.cjs +1 -0
- package/dist/components/CurrencyInput/utils.es.js +30 -0
- package/dist/components/DatePicker/DatePicker.cjs +1 -0
- package/dist/components/DatePicker/DatePicker.es.js +354 -0
- package/dist/components/DatePicker/DateTimePicker.cjs +1 -0
- package/dist/components/DatePicker/DateTimePicker.es.js +416 -0
- package/dist/components/DatePicker/date-picker.styles.cjs +1 -0
- package/dist/components/DatePicker/date-picker.styles.es.js +8 -0
- package/dist/components/DatePicker/date-time-picker.styles.cjs +1 -0
- package/dist/components/DatePicker/date-time-picker.styles.es.js +8 -0
- package/dist/components/DatePicker/index.d.ts +2 -1
- package/dist/components/DatePicker/types.cjs +1 -0
- package/dist/components/DatePicker/types.es.js +6 -0
- package/dist/components/Drawer/Drawer.cjs +1 -0
- package/dist/components/Drawer/Drawer.es.js +407 -0
- package/dist/components/Dropdown/Dropdown.cjs +1 -0
- package/dist/components/Dropdown/Dropdown.es.js +145 -0
- package/dist/components/Dropdown/dropdown.styles.cjs +1 -0
- package/dist/components/Dropdown/dropdown.styles.es.js +12 -0
- package/dist/components/EmptyState/EmptyState.cjs +2 -0
- package/dist/components/EmptyState/EmptyState.es.js +114 -0
- package/dist/components/EmptyState/empty-state.styles.cjs +1 -0
- package/dist/components/EmptyState/empty-state.styles.es.js +5 -0
- package/dist/components/Grid/Col.cjs +1 -0
- package/dist/components/Grid/Col.es.js +37 -0
- package/dist/components/Grid/Grid.cjs +1 -0
- package/dist/components/Grid/Grid.es.js +66 -0
- package/dist/components/Input/Input.cjs +1 -0
- package/dist/components/Input/Input.es.js +122 -0
- package/dist/components/Input/input.styles.cjs +1 -0
- package/dist/components/Input/input.styles.es.js +14 -0
- package/dist/components/InputGroup/InputGroup.cjs +1 -0
- package/dist/components/InputGroup/InputGroup.es.js +16 -0
- package/dist/components/InputGroup/input-group.styles.cjs +1 -0
- package/dist/components/InputGroup/input-group.styles.es.js +12 -0
- package/dist/components/LegacyDialog/DialogMainIcon.cjs +1 -0
- package/dist/components/LegacyDialog/DialogMainIcon.es.js +52 -0
- package/dist/components/LegacyDialog/LegacyDialog.cjs +1 -0
- package/dist/components/LegacyDialog/LegacyDialog.es.js +54 -0
- package/dist/components/LegacyPopup/LegacyPopup.cjs +1 -0
- package/dist/components/LegacyPopup/LegacyPopup.es.js +72 -0
- package/dist/components/MultiSearchDropdown/MultiSearchDropdown.cjs +1 -0
- package/dist/components/MultiSearchDropdown/MultiSearchDropdown.es.js +206 -0
- package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.cjs +1 -0
- package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.es.js +12 -0
- package/dist/components/Pagination/PageItem.cjs +1 -0
- package/dist/components/Pagination/PageItem.es.js +20 -0
- package/dist/components/Pagination/Pagination.cjs +1 -0
- package/dist/components/Pagination/Pagination.es.js +84 -0
- package/dist/components/Pagination/pagination.styles.cjs +1 -0
- package/dist/components/Pagination/pagination.styles.es.js +15 -0
- package/dist/components/Pagination/types.d.ts +1 -1
- package/dist/components/Popover/Popover.cjs +1 -0
- package/dist/components/Popover/Popover.es.js +54 -0
- package/dist/components/Popover/popover.styles.cjs +1 -0
- package/dist/components/Popover/popover.styles.es.js +5 -0
- package/dist/components/Popup/Popup.cjs +1 -0
- package/dist/components/Popup/Popup.es.js +148 -0
- package/dist/components/RadioButton/RadioButton.cjs +1 -0
- package/dist/components/RadioButton/RadioButton.es.js +61 -0
- package/dist/components/RadioButton/radio-button.styles.cjs +1 -0
- package/dist/components/RadioButton/radio-button.styles.es.js +15 -0
- package/dist/components/RangeInput/RangeInput.cjs +1 -0
- package/dist/components/RangeInput/RangeInput.es.js +32 -0
- package/dist/components/RangeInput/range-input.styles.cjs +1 -0
- package/dist/components/RangeInput/range-input.styles.es.js +5 -0
- package/dist/components/RowItem/RowItem.cjs +1 -0
- package/dist/components/RowItem/RowItem.es.js +56 -0
- package/dist/components/RowItem/rowitem.styles.cjs +1 -0
- package/dist/components/RowItem/rowitem.styles.es.js +23 -0
- package/dist/components/SearchInput/SearchInput.cjs +1 -0
- package/dist/components/SearchInput/SearchInput.es.js +129 -0
- package/dist/components/SearchInput/search-input.styles.cjs +1 -0
- package/dist/components/SearchInput/search-input.styles.es.js +12 -0
- package/dist/components/Searchbar/Searchbar.cjs +1 -0
- package/dist/components/Searchbar/Searchbar.es.js +51 -0
- package/dist/components/Searchbar/searchbar.styles.cjs +1 -0
- package/dist/components/Searchbar/searchbar.styles.es.js +5 -0
- package/dist/components/ShapeIcon/ShapeIcon.cjs +1 -0
- package/dist/components/ShapeIcon/ShapeIcon.es.js +22 -0
- package/dist/components/ShapeIcon/shape-icon.styles.cjs +1 -0
- package/dist/components/ShapeIcon/shape-icon.styles.es.js +65 -0
- package/dist/components/Slider/Slider.cjs +1 -0
- package/dist/components/Slider/Slider.es.js +169 -0
- package/dist/components/Slider/slider.styles.cjs +1 -0
- package/dist/components/Slider/slider.styles.es.js +5 -0
- package/dist/components/Snack/Snack.cjs +1 -0
- package/dist/components/Snack/Snack.es.js +69 -0
- package/dist/components/Snack/snack.styles.cjs +1 -0
- package/dist/components/Snack/snack.styles.es.js +13 -0
- package/dist/components/Tabs/Tab.cjs +1 -0
- package/dist/components/Tabs/Tab.es.js +42 -0
- package/dist/components/Tabs/Tabs.cjs +1 -0
- package/dist/components/Tabs/Tabs.es.js +80 -0
- package/dist/components/Tabs/tabs.styles.cjs +1 -0
- package/dist/components/Tabs/tabs.styles.es.js +33 -0
- package/dist/components/TagCloud/TagCloud.cjs +1 -0
- package/dist/components/TagCloud/TagCloud.es.js +47 -0
- package/dist/components/TagCloud/tagcloud.styles.cjs +1 -0
- package/dist/components/TagCloud/tagcloud.styles.es.js +12 -0
- package/dist/components/TextArea/TextArea.cjs +1 -0
- package/dist/components/TextArea/TextArea.es.js +104 -0
- package/dist/components/TextArea/text-area.styles.cjs +1 -0
- package/dist/components/TextArea/text-area.styles.es.js +13 -0
- package/dist/components/TextLabel/TextLabel.cjs +1 -0
- package/dist/components/TextLabel/TextLabel.es.js +28 -0
- package/dist/components/TextLabel/textlabel.styles.cjs +1 -0
- package/dist/components/TextLabel/textlabel.styles.es.js +29 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.cjs +1 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.es.js +37 -0
- package/dist/components/ToggleSwitch/toggle-switch.styles.cjs +1 -0
- package/dist/components/ToggleSwitch/toggle-switch.styles.es.js +24 -0
- package/dist/components/Tooltip/Tooltip.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.es.js +103 -0
- package/dist/components/Tooltip/tooltip.styles.cjs +1 -0
- package/dist/components/Tooltip/tooltip.styles.es.js +12 -0
- package/dist/forge/index.cjs +1 -0
- package/dist/forge/index.d.ts +6 -3
- package/dist/icons.cjs +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.es.js +82 -0
- package/dist/styles.css +1 -1
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.es.js +7 -0
- package/dist/typography/BodyAnnotation.cjs +1 -0
- package/dist/typography/BodyAnnotation.es.js +10 -0
- package/dist/typography/BodyCaption.cjs +1 -0
- package/dist/typography/BodyCaption.es.js +10 -0
- package/dist/typography/BodyPage.cjs +1 -0
- package/dist/typography/BodyPage.es.js +10 -0
- package/dist/typography/BodySection.cjs +1 -0
- package/dist/typography/BodySection.es.js +10 -0
- package/dist/typography/DisplayAnnotation.cjs +1 -0
- package/dist/typography/DisplayAnnotation.es.js +10 -0
- package/dist/typography/DisplayCaption.cjs +1 -0
- package/dist/typography/DisplayCaption.es.js +10 -0
- package/dist/typography/DisplayPage.cjs +1 -0
- package/dist/typography/DisplayPage.es.js +10 -0
- package/dist/typography/DisplayPrice.cjs +1 -0
- package/dist/typography/DisplayPrice.es.js +10 -0
- package/dist/typography/DisplaySection.cjs +1 -0
- package/dist/typography/DisplaySection.es.js +10 -0
- package/dist/typography/HeaderAnnotation.cjs +1 -0
- package/dist/typography/HeaderAnnotation.es.js +10 -0
- package/dist/typography/HeaderCaption.cjs +1 -0
- package/dist/typography/HeaderCaption.es.js +10 -0
- package/dist/typography/HeaderPage.cjs +1 -0
- package/dist/typography/HeaderPage.es.js +10 -0
- package/dist/typography/HeaderSection.cjs +1 -0
- package/dist/typography/HeaderSection.es.js +10 -0
- package/dist/typography/LabelAnnotation.cjs +1 -0
- package/dist/typography/LabelAnnotation.es.js +10 -0
- package/dist/typography/LabelCaption.cjs +1 -0
- package/dist/typography/LabelCaption.es.js +10 -0
- package/dist/typography/LabelPage.cjs +1 -0
- package/dist/typography/LabelPage.es.js +10 -0
- package/dist/typography/LabelSection.cjs +1 -0
- package/dist/typography/LabelSection.es.js +10 -0
- package/dist/typography/NoteCaption.cjs +1 -0
- package/dist/typography/NoteCaption.es.js +10 -0
- package/dist/typography/NotePage.cjs +1 -0
- package/dist/typography/NotePage.es.js +10 -0
- package/dist/typography/NoteSection.cjs +1 -0
- package/dist/typography/NoteSection.es.js +10 -0
- package/dist/typography/TaglineAnnotation.cjs +1 -0
- package/dist/typography/TaglineAnnotation.es.js +10 -0
- package/dist/typography/TaglineCaption.cjs +1 -0
- package/dist/typography/TaglineCaption.es.js +10 -0
- package/dist/typography/TaglineFootext.cjs +1 -0
- package/dist/typography/TaglineFootext.es.js +10 -0
- package/dist/typography/TaglineSection.cjs +1 -0
- package/dist/typography/TaglineSection.es.js +10 -0
- package/dist/utils/bundleCss.cjs +1 -1
- package/dist/utils/cleanHtml.cjs +1 -0
- package/dist/utils/cleanHtml.es.js +6 -0
- package/dist/utils/cn.cjs +1 -0
- package/dist/utils/cn.es.js +59 -0
- package/dist/utils/createUniversalPortal.cjs +1 -0
- package/dist/utils/createUniversalPortal.es.js +17 -0
- package/dist/utils/floating.cjs +1 -0
- package/dist/utils/floating.es.js +374 -0
- package/dist/utils/getBreakpointsValues.cjs +1 -0
- package/dist/utils/getBreakpointsValues.es.js +27 -0
- package/dist/utils/sizes.cjs +1 -0
- package/dist/utils/sizes.es.js +30 -0
- package/dist/utils/themeTokens.cjs +1 -0
- package/dist/utils/themeTokens.es.js +319 -0
- package/dist/utils/useBodyScrollLock.cjs +1 -0
- package/dist/utils/useBodyScrollLock.es.js +24 -0
- package/dist/utils/useScrollTop.cjs +1 -0
- package/dist/utils/useScrollTop.es.js +9 -0
- package/package.json +7 -16
- package/scripts/postinstall.cjs +34 -6
- package/skills/clad-ui/SKILL.md +3 -1
- package/skills/clad-ui-feedback/SKILL.md +1 -1
- package/skills/migrate-clad-ui-v3/SKILL.md +4 -2
- package/skills/migrate-clad-ui-v3/references/component-api-changes.md +42 -0
- package/skills/migrate-clad-ui-v3/references/token-and-linaria-mapping.md +4 -1
- package/src/styles/preset.css +1 -1
- package/dist/clad-ui.cjs +0 -2
- package/dist/clad-ui.d.ts +0 -2
- package/dist/clad-ui.es.js +0 -9791
- package/dist/components/Drawer/Drawer.pw.fixtures.d.ts +0 -9
- package/dist/components/Grid/Grid.pw.fixtures.d.ts +0 -3
- package/dist/components/Popover/Popover.pw.fixtures.d.ts +0 -6
- package/dist/components/Popup/Popup.pw.fixtures.d.ts +0 -5
- package/dist/components/Tooltip/Tooltip.pw.fixtures.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`react`);function t(t){return(0,e.forwardRef)(t)}exports.forwardRef=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`p`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-body-annotation`,r),...a},i);n.displayName=`BodyAnnotation`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/BodyAnnotation.tsx
|
|
4
|
+
var n = ({ as: n = "p", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-body-annotation", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "BodyAnnotation";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`p`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-body-caption`,r),...a},i);n.displayName=`BodyCaption`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/BodyCaption.tsx
|
|
4
|
+
var n = ({ as: n = "p", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-body-caption", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "BodyCaption";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`p`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-body-page`,r),...a},i);n.displayName=`BodyPage`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/BodyPage.tsx
|
|
4
|
+
var n = ({ as: n = "p", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-body-page", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "BodyPage";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`p`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-body-section`,r),...a},i);n.displayName=`BodySection`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/BodySection.tsx
|
|
4
|
+
var n = ({ as: n = "p", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-body-section", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "BodySection";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h1`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-display-annotation`,r),...a},i);n.displayName=`DisplayAnnotation`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/DisplayAnnotation.tsx
|
|
4
|
+
var n = ({ as: n = "h1", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-display-annotation", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "DisplayAnnotation";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h1`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-display-caption`,r),...a},i);n.displayName=`DisplayCaption`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/DisplayCaption.tsx
|
|
4
|
+
var n = ({ as: n = "h1", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-display-caption", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "DisplayCaption";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h1`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-display-page`,r),...a},i);n.displayName=`DisplayPage`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/DisplayPage.tsx
|
|
4
|
+
var n = ({ as: n = "h1", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-display-page", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "DisplayPage";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h1`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-display-price`,r),...a},i);n.displayName=`DisplayPrice`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/DisplayPrice.tsx
|
|
4
|
+
var n = ({ as: n = "h1", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-display-price", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "DisplayPrice";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h1`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-display-section`,r),...a},i);n.displayName=`DisplaySection`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/DisplaySection.tsx
|
|
4
|
+
var n = ({ as: n = "h1", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-display-section", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "DisplaySection";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h2`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-header-annotation`,r),...a},i);n.displayName=`HeaderAnnotation`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/HeaderAnnotation.tsx
|
|
4
|
+
var n = ({ as: n = "h2", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-header-annotation", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "HeaderAnnotation";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h2`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-header-caption`,r),...a},i);n.displayName=`HeaderCaption`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/HeaderCaption.tsx
|
|
4
|
+
var n = ({ as: n = "h2", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-header-caption", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "HeaderCaption";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h2`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-header-page`,r),...a},i);n.displayName=`HeaderPage`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/HeaderPage.tsx
|
|
4
|
+
var n = ({ as: n = "h2", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-header-page", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "HeaderPage";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h2`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-header-section`,r),...a},i);n.displayName=`HeaderSection`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/HeaderSection.tsx
|
|
4
|
+
var n = ({ as: n = "h2", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-header-section", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "HeaderSection";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h3`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-label-annotation`,r),...a},i);n.displayName=`LabelAnnotation`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/LabelAnnotation.tsx
|
|
4
|
+
var n = ({ as: n = "h3", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-label-annotation", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "LabelAnnotation";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h3`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-label-caption`,r),...a},i);n.displayName=`LabelCaption`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/LabelCaption.tsx
|
|
4
|
+
var n = ({ as: n = "h3", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-label-caption", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "LabelCaption";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h3`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-label-page`,r),...a},i);n.displayName=`LabelPage`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/LabelPage.tsx
|
|
4
|
+
var n = ({ as: n = "h3", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-label-page", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "LabelPage";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`h3`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-label-section`,r),...a},i);n.displayName=`LabelSection`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/LabelSection.tsx
|
|
4
|
+
var n = ({ as: n = "h3", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-label-section", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "LabelSection";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`p`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-note-caption`,r),...a},i);n.displayName=`NoteCaption`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/NoteCaption.tsx
|
|
4
|
+
var n = ({ as: n = "p", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-note-caption", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "NoteCaption";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`p`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-note-page`,r),...a},i);n.displayName=`NotePage`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/NotePage.tsx
|
|
4
|
+
var n = ({ as: n = "p", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-note-page", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "NotePage";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`p`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-note-section`,r),...a},i);n.displayName=`NoteSection`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/NoteSection.tsx
|
|
4
|
+
var n = ({ as: n = "p", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-note-section", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "NoteSection";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`span`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-tagline-annotation`,r),...a},i);n.displayName=`TaglineAnnotation`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/TaglineAnnotation.tsx
|
|
4
|
+
var n = ({ as: n = "span", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-tagline-annotation", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "TaglineAnnotation";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`span`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-tagline-caption`,r),...a},i);n.displayName=`TaglineCaption`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/TaglineCaption.tsx
|
|
4
|
+
var n = ({ as: n = "span", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-tagline-caption", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "TaglineCaption";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`span`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-tagline-footext`,r),...a},i);n.displayName=`TaglineFootext`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/TaglineFootext.tsx
|
|
4
|
+
var n = ({ as: n = "span", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-tagline-footext", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "TaglineFootext";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../utils/cn.cjs`);let t=require(`react`);var n=({as:n=`span`,className:r,children:i,...a})=>(0,t.createElement)(n,{className:e.default(`text-tagline-section`,r),...a},i);n.displayName=`TaglineSection`,exports.default=n;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import e from "../utils/cn.es.js";
|
|
2
|
+
import { createElement as t } from "react";
|
|
3
|
+
//#region src/typography/TaglineSection.tsx
|
|
4
|
+
var n = ({ as: n = "span", className: r, children: i, ...a }) => t(n, {
|
|
5
|
+
className: e("text-tagline-section", r),
|
|
6
|
+
...a
|
|
7
|
+
}, i);
|
|
8
|
+
n.displayName = "TaglineSection";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as default };
|
package/dist/utils/bundleCss.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`);let t=require(`fs`);t=e.__toESM(t);let n=require(`path`);n=e.__toESM(n);let r=require(`url`);var i=null,a=n.default.resolve(n.default.dirname((0,r.fileURLToPath)({}.url)),`../../src/styles/index.css`);function o(e){let r=t.default.readFileSync(e,`utf-8`),i=n.default.dirname(e);return r.replace(/@import\s+['"]([^'"]+)['"]\s*(layer\([^)]+\))?;/g,(e,t,r)=>{if(!t.startsWith(`.`))return e;let a=o(n.default.resolve(i,t));return r?`@layer ${/layer\(([^)]+)\)/.exec(r)?.[1]} {\n${a}\n}`:a})}function s(){return i||=o(a),i}exports.getBundledCss=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e=``){return e.replace(/(<(script|object|applet|embed|frameset|iframe|form|textarea|map)(\s+.*?)?>.*?<\/\2>)|(<(script|object|applet|embed|frameset|iframe|form|textarea|input|button|map)(\s+.*?)?\/?>)|(=.*".*javascript:.*?")/g,``)}exports.default=e;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/utils/cleanHtml.ts
|
|
2
|
+
function e(e = "") {
|
|
3
|
+
return e.replace(/(<(script|object|applet|embed|frameset|iframe|form|textarea|map)(\s+.*?)?>.*?<\/\2>)|(<(script|object|applet|embed|frameset|iframe|form|textarea|input|button|map)(\s+.*?)?\/?>)|(=.*".*javascript:.*?")/g, "");
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`);var e=(0,require(`cn/config`).createCn)({extend:{classGroups:{"font-size":[{text:[`display-page`,`display-section`,`display-caption`,`display-annotation`,`display-price`,`header-page`,`header-section`,`header-caption`,`header-annotation`,`label-page`,`label-section`,`label-caption`,`label-annotation`,`body-page`,`body-section`,`body-caption`,`body-annotation`,`note-page`,`note-section`,`note-caption`,`tagline-caption`,`tagline-section`,`tagline-footext`,`tagline-annotation`]}],"border-w":[{border:[`thin`,`regular`,`bold`]}],rounded:[{rounded:[`xs`,`sm`,`md`,`lg`,`xl`,`pill`,`circle`,`ad-small`,`ad`,`card-small`,`card`,`decoration`,`modal`]}],shadow:[{shadow:[`elevation-100`,`elevation-200`,`elevation-300`,`below`,`floating`]}]}}});exports.default=e;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { createCn as e } from "cn/config";
|
|
2
|
+
//#region src/utils/cn.ts
|
|
3
|
+
var t = e({ extend: { classGroups: {
|
|
4
|
+
"font-size": [{ text: [
|
|
5
|
+
"display-page",
|
|
6
|
+
"display-section",
|
|
7
|
+
"display-caption",
|
|
8
|
+
"display-annotation",
|
|
9
|
+
"display-price",
|
|
10
|
+
"header-page",
|
|
11
|
+
"header-section",
|
|
12
|
+
"header-caption",
|
|
13
|
+
"header-annotation",
|
|
14
|
+
"label-page",
|
|
15
|
+
"label-section",
|
|
16
|
+
"label-caption",
|
|
17
|
+
"label-annotation",
|
|
18
|
+
"body-page",
|
|
19
|
+
"body-section",
|
|
20
|
+
"body-caption",
|
|
21
|
+
"body-annotation",
|
|
22
|
+
"note-page",
|
|
23
|
+
"note-section",
|
|
24
|
+
"note-caption",
|
|
25
|
+
"tagline-caption",
|
|
26
|
+
"tagline-section",
|
|
27
|
+
"tagline-footext",
|
|
28
|
+
"tagline-annotation"
|
|
29
|
+
] }],
|
|
30
|
+
"border-w": [{ border: [
|
|
31
|
+
"thin",
|
|
32
|
+
"regular",
|
|
33
|
+
"bold"
|
|
34
|
+
] }],
|
|
35
|
+
rounded: [{ rounded: [
|
|
36
|
+
"xs",
|
|
37
|
+
"sm",
|
|
38
|
+
"md",
|
|
39
|
+
"lg",
|
|
40
|
+
"xl",
|
|
41
|
+
"pill",
|
|
42
|
+
"circle",
|
|
43
|
+
"ad-small",
|
|
44
|
+
"ad",
|
|
45
|
+
"card-small",
|
|
46
|
+
"card",
|
|
47
|
+
"decoration",
|
|
48
|
+
"modal"
|
|
49
|
+
] }],
|
|
50
|
+
shadow: [{ shadow: [
|
|
51
|
+
"elevation-100",
|
|
52
|
+
"elevation-200",
|
|
53
|
+
"elevation-300",
|
|
54
|
+
"below",
|
|
55
|
+
"floating"
|
|
56
|
+
] }]
|
|
57
|
+
} } });
|
|
58
|
+
//#endregion
|
|
59
|
+
export { t as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`react-dom`);function t(t,n=``){if(typeof window<`u`&&typeof document<`u`){let r=null;try{r=(n?document.querySelector(n):null)??document.body}catch{r=document.body}return(0,e.createPortal)(t,r)}return t}exports.default=t;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createPortal as e } from "react-dom";
|
|
3
|
+
//#region src/utils/createUniversalPortal.ts
|
|
4
|
+
function t(t, n = "") {
|
|
5
|
+
if (typeof window < "u" && typeof document < "u") {
|
|
6
|
+
let r = null;
|
|
7
|
+
try {
|
|
8
|
+
r = (n ? document.querySelector(n) : null) ?? document.body;
|
|
9
|
+
} catch {
|
|
10
|
+
r = document.body;
|
|
11
|
+
}
|
|
12
|
+
return e(t, r);
|
|
13
|
+
}
|
|
14
|
+
return t;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { t as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`react`),t=require(`react/jsx-runtime`),n=require(`react-dom`),r=require(`@floating-ui/react-dom`);var i={...r.platform,getDimensions(e){let t=e.getBoundingClientRect();return{width:t.width,height:t.height}}},a=typeof window<`u`?e.useLayoutEffect:e.useEffect;function o(...e){return t=>{for(let n of e)n&&(typeof n==`function`?n(t):n.current=t)}}function s(e){switch(e){case`top-center`:return`top`;case`bottom-center`:return`bottom`;case`left-center`:return`left`;case`right-center`:return`right`;case`center`:return`top`;default:return e}}function c(e,t){if(t||e===`center`)return`center`;let n=e.split(`-`)[0];return n===`top`||n===`bottom`||n===`left`||n===`right`?n:`top`}var l=`layers`;function u(){if(typeof document>`u`)return null;let e=document.getElementById(l);return e||(e=document.createElement(`div`),e.id=l,e.style.cssText=`position: absolute; top: 0px; left: 0px; right: 0px;`,document.body.appendChild(e)),e}function d(e,t,n){return e<t?t:e>n?n:e}function f(t){let{isOpen:o=!1,placement:l=`top-center`,possiblePlacements:f,auto:p=!1,snap:m=!1,triggerOffset:h=0,arrowOffset:g=0,containerOffset:_=10,overflowContainer:v=!0,onOutsideClick:y}=t,b=l===`center`,x=(0,e.useRef)(null),S=(0,e.useRef)(null),C=(0,e.useRef)(null),[w,T]=(0,e.useState)(null),E=v?`fixed`:`absolute`,{x:D,y:O,refs:k,placement:A,middlewareData:j,update:M}=(0,r.useFloating)({open:o,placement:s(l),strategy:E,platform:i,middleware:(0,e.useMemo)(()=>{if(b)return[{name:`center`,fn({rects:e}){return{x:e.reference.x+e.reference.width/2-e.floating.width/2,y:e.reference.y+e.reference.height/2-e.floating.height/2}}}];let e=[(0,r.offset)(h)];if(p){let t=f?f.filter(e=>e!==l&&e!==`center`).map(s):void 0;e.push((0,r.flip)({padding:_,crossAxis:m?`alignment`:!1,...t?{fallbackPlacements:t}:{}})),m||e.push((0,r.shift)({padding:_}))}return w&&e.push({name:`reactLaagArrowClamp`,fn({x:e,y:t,rects:n,placement:r}){let i=r.split(`-`)[0],a=i===`left`||i===`right`,o=g*2,s=a?n.reference.y:n.reference.x,c=a?n.reference.height:n.reference.width,l=a?n.floating.height:n.floating.width,u=s-(l-16)+o,f=s+(c-16)-o,p=a?e:d(e,u,f),m=a?d(t,u,f):t,h=a?m:p,_=h+l,v=s+c,y=c>l,b=g+16/2,x=l-16/2-g,S=h+l/2-s-16/2-g,C=_-l/2-v+16/2+g,w=(S<0?-S:0)+(C>0?C:0);return{x:p,y:m,data:{arrowPos:d(y?l/2+w:s+c/2-h,b,x)}}}},(0,r.arrow)({element:w,padding:g})),e},[b,h,p,f,l,_,m,w,g]),whileElementsMounted:r.autoUpdate}),N=(0,e.useCallback)(e=>{e&&e!==x.current&&(x.current=e)},[]),P=(0,e.useCallback)(e=>{S.current=e,x.current&&k.reference.current!==x.current&&k.setReference(x.current),k.setFloating(e)},[k]),F=(0,e.useCallback)(e=>{C.current=e,T(t=>t===e?t:e)},[]);a(()=>{o&&x.current&&(k.reference.current!==x.current&&k.setReference(x.current),M())},[o,k,M]);let I=(0,e.useRef)(y);I.current=y,(0,e.useEffect)(()=>{if(!o||!I.current)return;let e=e=>{let t=e.target;if(!t)return;let n=x.current&&x.current.contains(t),r=S.current&&S.current.contains(t);!n&&!r&&I.current?.()};return document.addEventListener(`click`,e,!0),()=>{document.removeEventListener(`click`,e,!0)}},[o]);let L=c(A,b),R=L===`left`||L===`right`,z=(0,e.useMemo)(()=>{let e={position:`absolute`,willChange:`top, left`};if(L===`center`)return e;let t=j.reactLaagArrowClamp,n=j.arrow?.x,r=j.arrow?.y,i=R?r==null?0:r+8:n==null?0:n+8,a=t?.arrowPos??i;return{...e,[L]:`100%`,...R?{top:a}:{left:a}}},[L,R,j.reactLaagArrowClamp,j.arrow?.x,j.arrow?.y]),B=(0,e.useMemo)(()=>({willChange:`top, left, width, height`,position:E,top:O??0,left:D??0}),[E,D,O]),V=(0,e.useCallback)(e=>{let t=u();return t?(0,n.createPortal)(e,t):null},[]);return{triggerProps:{ref:N},layerProps:{ref:P,style:B},arrowProps:{ref:F,style:z,layerSide:L},layerSide:L,get triggerBounds(){return o&&x.current?x.current.getBoundingClientRect():null},renderLayer:V}}function p(e,t){return Math.tan(Math.PI/180*e)*t}function m(e,t,n,r){return{bottom:`0 ${-r} ${t} ${e}`,top:`0 0 ${t} ${e+r}`,right:`${-r} 0 ${e} ${t}`,left:`0 0 ${e+r} ${t}`}[n]}function h(e,t,n,r,i){let a=n===`left`||n===`right`,o=r/10*e*2,s={bottom:[0,e],top:[0,0],right:[e,t],left:[0,t]}[n].join(` `),c=a?`V 0`:`H ${t}`,l=t/2,u=t/2+p(i,e/8),d=e/8,f={bottom:[`C`,u,d,l+o,0,l,0],top:[`C`,u,e-d,l+o,e,l,e],right:[`C`,d,t-u,0,l-o,0,l],left:[`C`,e-d,t-u,e,l-o,e,l]}[n].join(` `),m=t/2-p(i,e/8),h=e/8;return[`M`,s,c,f,{bottom:[`C`,l-o,0,m,h,s],top:[`C`,l-o,e,m,e-h,s],right:[`C`,0,l+o,h,t-m,s],left:[`C`,e,l+o,e-h,t-m,s]}[n].join(` `)].join(` `)}function g(e,t,n,r,i){let a=r===`left`||r===`right`,o=r===`top`||r===`left`,s=p(i,n),[c,l]=o?[0,n]:[e,e-n];return a?[`M`,c,n,`V`,t-n,`L`,l,t-n-s,`V`,s+n,`Z`].join(` `):[`M`,n,c,`H`,t-n,`L`,t-n-s,l,`H`,s+n,`Z`].join(` `)}var _=(0,e.forwardRef)(function({size:e=8,angle:n=45,borderWidth:r=0,borderColor:i=`black`,roundness:a=0,backgroundColor:o=`white`,layerSide:s=`top`,style:c={},...l},u){if(s===`center`)return null;let d=s===`left`||s===`right`,f=s===`top`||s===`left`,_=e,v=p(n,e)*2,y=Math.max(_,v);return(0,t.jsxs)(`svg`,{ref:u,...l,style:{...c,transform:`translate${d?`Y`:`X`}(-50%)`},width:y,height:y,preserveAspectRatio:f?`xMinYMin`:`xMaxYMax`,viewBox:m(_,v,s,r),children:[(0,t.jsx)(`path`,{fill:o,strokeWidth:r,stroke:i,d:h(_,v,s,a,n)}),(0,t.jsx)(`path`,{fill:o,d:g(_,v,r,s,n)})]})}),v={ENTERING:0,LEAVING:1,IDLE:2};function y(t={}){let{delayEnter:n=0,delayLeave:r=0,hideOnScroll:i=!0}=t,[a,o]=(0,e.useState)(!1),s=(0,e.useRef)(null),c=(0,e.useRef)(v.IDLE),l=(0,e.useRef)(!1),u=(0,e.useCallback)(()=>{s.current!==null&&(window.clearTimeout(s.current),s.current=null),c.current=v.IDLE},[]),d=()=>{c.current===v.LEAVING&&s.current!==null&&u(),!a&&(c.current=v.ENTERING,s.current=window.setTimeout(()=>{o(!0),s.current=null,c.current=v.IDLE},n))},f=e=>{if(c.current===v.ENTERING&&s.current!==null&&u(),a){if(e){o(!1),s.current=null,c.current=v.IDLE;return}c.current=v.LEAVING,s.current=window.setTimeout(()=>{o(!1),s.current=null,c.current=v.IDLE},r)}};return(0,e.useEffect)(()=>{let e=()=>{a&&i&&(u(),o(!1))};return window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`scroll`,e,!0),s.current!==null&&window.clearTimeout(s.current)}},[a,i,u]),[a,{onMouseEnter:d,onMouseLeave:()=>f(!1),onTouchStart:()=>{l.current=!1},onTouchMove:()=>{l.current=!0},onTouchEnd:()=>{!l.current&&!a&&o(!0),l.current=!1}},()=>f(!0)]}exports.Arrow=_,exports.mergeRefs=o,exports.useHover=y,exports.useLayer=f;
|