@causw/core 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/assets/avatar/default.cjs +11 -0
- package/dist/assets/avatar/default.mjs +6 -0
- package/dist/assets/avatar/default.mjs.map +1 -0
- package/dist/components/Avatar/Avatar.cjs +46 -0
- package/dist/components/Avatar/Avatar.d.cts +25 -0
- package/dist/components/Avatar/Avatar.d.cts.map +1 -0
- package/dist/components/Avatar/Avatar.d.mts +26 -0
- package/dist/components/Avatar/Avatar.d.mts.map +1 -0
- package/dist/components/Avatar/Avatar.mjs +45 -0
- package/dist/components/Avatar/Avatar.mjs.map +1 -0
- package/dist/components/Avatar/Avatar.styles.cjs +22 -0
- package/dist/components/Avatar/Avatar.styles.d.cts +75 -0
- package/dist/components/Avatar/Avatar.styles.d.cts.map +1 -0
- package/dist/components/Avatar/Avatar.styles.d.mts +75 -0
- package/dist/components/Avatar/Avatar.styles.d.mts.map +1 -0
- package/dist/components/Avatar/Avatar.styles.mjs +22 -0
- package/dist/components/Avatar/Avatar.styles.mjs.map +1 -0
- package/dist/components/Avatar/index.d.mts +2 -0
- package/dist/components/Box/Box.cjs +24 -0
- package/dist/components/Box/Box.d.cts +22 -0
- package/dist/components/Box/Box.d.cts.map +1 -0
- package/dist/components/Box/Box.d.mts +23 -0
- package/dist/components/Box/Box.d.mts.map +1 -0
- package/dist/components/Box/Box.mjs +23 -0
- package/dist/components/Box/Box.mjs.map +1 -0
- package/dist/components/Box/Box.styles.cjs +48 -0
- package/dist/components/Box/Box.styles.d.cts +105 -0
- package/dist/components/Box/Box.styles.d.cts.map +1 -0
- package/dist/components/Box/Box.styles.d.mts +105 -0
- package/dist/components/Box/Box.styles.d.mts.map +1 -0
- package/dist/components/Box/Box.styles.mjs +48 -0
- package/dist/components/Box/Box.styles.mjs.map +1 -0
- package/dist/components/Box/index.d.mts +2 -0
- package/dist/components/Button/Button.cjs +23 -0
- package/dist/components/Button/Button.d.cts +19 -0
- package/dist/components/Button/Button.d.cts.map +1 -0
- package/dist/components/Button/Button.d.mts +20 -0
- package/dist/components/Button/Button.d.mts.map +1 -0
- package/dist/components/Button/Button.mjs +23 -0
- package/dist/components/Button/Button.mjs.map +1 -0
- package/dist/components/Button/Button.styles.cjs +35 -0
- package/dist/components/Button/Button.styles.d.cts +63 -0
- package/dist/components/Button/Button.styles.d.cts.map +1 -0
- package/dist/components/Button/Button.styles.d.mts +63 -0
- package/dist/components/Button/Button.styles.d.mts.map +1 -0
- package/dist/components/Button/Button.styles.mjs +35 -0
- package/dist/components/Button/Button.styles.mjs.map +1 -0
- package/dist/components/Button/index.d.mts +1 -0
- package/dist/components/CTAButton/CTAButton.cjs +22 -0
- package/dist/components/CTAButton/CTAButton.d.cts +18 -0
- package/dist/components/CTAButton/CTAButton.d.cts.map +1 -0
- package/dist/components/CTAButton/CTAButton.d.mts +19 -0
- package/dist/components/CTAButton/CTAButton.d.mts.map +1 -0
- package/dist/components/CTAButton/CTAButton.mjs +22 -0
- package/dist/components/CTAButton/CTAButton.mjs.map +1 -0
- package/dist/components/CTAButton/CTAButton.styles.cjs +32 -0
- package/dist/components/CTAButton/CTAButton.styles.d.cts +57 -0
- package/dist/components/CTAButton/CTAButton.styles.d.cts.map +1 -0
- package/dist/components/CTAButton/CTAButton.styles.d.mts +57 -0
- package/dist/components/CTAButton/CTAButton.styles.d.mts.map +1 -0
- package/dist/components/CTAButton/CTAButton.styles.mjs +32 -0
- package/dist/components/CTAButton/CTAButton.styles.mjs.map +1 -0
- package/dist/components/CTAButton/index.d.mts +1 -0
- package/dist/components/Checkbox/Checkbox.cjs +83 -0
- package/dist/components/Checkbox/Checkbox.d.cts +44 -0
- package/dist/components/Checkbox/Checkbox.d.cts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.mts +46 -0
- package/dist/components/Checkbox/Checkbox.d.mts.map +1 -0
- package/dist/components/Checkbox/Checkbox.mjs +82 -0
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.cjs +31 -0
- package/dist/components/Checkbox/Checkbox.styles.d.cts +75 -0
- package/dist/components/Checkbox/Checkbox.styles.d.cts.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.d.mts +75 -0
- package/dist/components/Checkbox/Checkbox.styles.d.mts.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.mjs +31 -0
- package/dist/components/Checkbox/Checkbox.styles.mjs.map +1 -0
- package/dist/components/Checkbox/index.d.mts +1 -0
- package/dist/components/Chip/Chip.cjs +29 -0
- package/dist/components/Chip/Chip.d.cts +22 -0
- package/dist/components/Chip/Chip.d.cts.map +1 -0
- package/dist/components/Chip/Chip.d.mts +23 -0
- package/dist/components/Chip/Chip.d.mts.map +1 -0
- package/dist/components/Chip/Chip.mjs +28 -0
- package/dist/components/Chip/Chip.mjs.map +1 -0
- package/dist/components/Chip/Chip.styles.cjs +30 -0
- package/dist/components/Chip/Chip.styles.d.cts +51 -0
- package/dist/components/Chip/Chip.styles.d.cts.map +1 -0
- package/dist/components/Chip/Chip.styles.d.mts +51 -0
- package/dist/components/Chip/Chip.styles.d.mts.map +1 -0
- package/dist/components/Chip/Chip.styles.mjs +30 -0
- package/dist/components/Chip/Chip.styles.mjs.map +1 -0
- package/dist/components/Chip/index.d.mts +2 -0
- package/dist/components/Dialog/Dialog.cjs +59 -0
- package/dist/components/Dialog/Dialog.d.cts +57 -0
- package/dist/components/Dialog/Dialog.d.cts.map +1 -0
- package/dist/components/Dialog/Dialog.d.mts +58 -0
- package/dist/components/Dialog/Dialog.d.mts.map +1 -0
- package/dist/components/Dialog/Dialog.mjs +58 -0
- package/dist/components/Dialog/Dialog.mjs.map +1 -0
- package/dist/components/Dialog/Dialog.styles.cjs +35 -0
- package/dist/components/Dialog/Dialog.styles.d.cts +46 -0
- package/dist/components/Dialog/Dialog.styles.d.cts.map +1 -0
- package/dist/components/Dialog/Dialog.styles.d.mts +46 -0
- package/dist/components/Dialog/Dialog.styles.d.mts.map +1 -0
- package/dist/components/Dialog/Dialog.styles.mjs +33 -0
- package/dist/components/Dialog/Dialog.styles.mjs.map +1 -0
- package/dist/components/Dialog/index.d.mts +2 -0
- package/dist/components/Dropdown/Dropdown.cjs +39 -0
- package/dist/components/Dropdown/Dropdown.d.cts +36 -0
- package/dist/components/Dropdown/Dropdown.d.cts.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.mts +36 -0
- package/dist/components/Dropdown/Dropdown.d.mts.map +1 -0
- package/dist/components/Dropdown/Dropdown.mjs +37 -0
- package/dist/components/Dropdown/Dropdown.mjs.map +1 -0
- package/dist/components/Dropdown/Dropdown.styles.cjs +19 -0
- package/dist/components/Dropdown/Dropdown.styles.d.cts +54 -0
- package/dist/components/Dropdown/Dropdown.styles.d.cts.map +1 -0
- package/dist/components/Dropdown/Dropdown.styles.d.mts +54 -0
- package/dist/components/Dropdown/Dropdown.styles.d.mts.map +1 -0
- package/dist/components/Dropdown/Dropdown.styles.mjs +19 -0
- package/dist/components/Dropdown/Dropdown.styles.mjs.map +1 -0
- package/dist/components/Dropdown/index.d.mts +2 -0
- package/dist/components/Field/Field.cjs +80 -0
- package/dist/components/Field/Field.d.cts +59 -0
- package/dist/components/Field/Field.d.cts.map +1 -0
- package/dist/components/Field/Field.d.mts +60 -0
- package/dist/components/Field/Field.d.mts.map +1 -0
- package/dist/components/Field/Field.mjs +79 -0
- package/dist/components/Field/Field.mjs.map +1 -0
- package/dist/components/Field/Field.styles.cjs +13 -0
- package/dist/components/Field/Field.styles.mjs +13 -0
- package/dist/components/Field/Field.styles.mjs.map +1 -0
- package/dist/components/Field/index.d.mts +1 -0
- package/dist/components/Flex/Flex.cjs +25 -0
- package/dist/components/Flex/Flex.d.cts +24 -0
- package/dist/components/Flex/Flex.d.cts.map +1 -0
- package/dist/components/Flex/Flex.d.mts +25 -0
- package/dist/components/Flex/Flex.d.mts.map +1 -0
- package/dist/components/Flex/Flex.mjs +24 -0
- package/dist/components/Flex/Flex.mjs.map +1 -0
- package/dist/components/Flex/Flex.styles.cjs +50 -0
- package/dist/components/Flex/Flex.styles.d.cts +16 -0
- package/dist/components/Flex/Flex.styles.d.cts.map +1 -0
- package/dist/components/Flex/Flex.styles.d.mts +16 -0
- package/dist/components/Flex/Flex.styles.d.mts.map +1 -0
- package/dist/components/Flex/Flex.styles.mjs +51 -0
- package/dist/components/Flex/Flex.styles.mjs.map +1 -0
- package/dist/components/Flex/index.d.mts +2 -0
- package/dist/components/Float/Float.cjs +32 -0
- package/dist/components/Float/Float.d.cts +25 -0
- package/dist/components/Float/Float.d.cts.map +1 -0
- package/dist/components/Float/Float.d.mts +26 -0
- package/dist/components/Float/Float.d.mts.map +1 -0
- package/dist/components/Float/Float.mjs +31 -0
- package/dist/components/Float/Float.mjs.map +1 -0
- package/dist/components/Float/Float.styles.cjs +39 -0
- package/dist/components/Float/Float.styles.d.cts +58 -0
- package/dist/components/Float/Float.styles.d.cts.map +1 -0
- package/dist/components/Float/Float.styles.d.mts +58 -0
- package/dist/components/Float/Float.styles.d.mts.map +1 -0
- package/dist/components/Float/Float.styles.mjs +38 -0
- package/dist/components/Float/Float.styles.mjs.map +1 -0
- package/dist/components/Float/index.d.mts +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.cjs +18 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +16 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.cts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.mts +17 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.d.mts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.mjs +18 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.mjs.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.cjs +15 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.cts +24 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.cts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts +24 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts.map +1 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.mjs +15 -0
- package/dist/components/FloatingActionButton/FloatingActionButton.styles.mjs.map +1 -0
- package/dist/components/FloatingActionButton/index.d.mts +1 -0
- package/dist/components/Grid/Grid.cjs +24 -0
- package/dist/components/Grid/Grid.d.cts +22 -0
- package/dist/components/Grid/Grid.d.cts.map +1 -0
- package/dist/components/Grid/Grid.d.mts +23 -0
- package/dist/components/Grid/Grid.d.mts.map +1 -0
- package/dist/components/Grid/Grid.mjs +23 -0
- package/dist/components/Grid/Grid.mjs.map +1 -0
- package/dist/components/Grid/Grid.styles.cjs +56 -0
- package/dist/components/Grid/Grid.styles.d.cts +126 -0
- package/dist/components/Grid/Grid.styles.d.cts.map +1 -0
- package/dist/components/Grid/Grid.styles.d.mts +126 -0
- package/dist/components/Grid/Grid.styles.d.mts.map +1 -0
- package/dist/components/Grid/Grid.styles.mjs +56 -0
- package/dist/components/Grid/Grid.styles.mjs.map +1 -0
- package/dist/components/Grid/index.d.mts +1 -0
- package/dist/components/HStack/HStack.cjs +17 -0
- package/dist/components/HStack/HStack.d.cts +15 -0
- package/dist/components/HStack/HStack.d.cts.map +1 -0
- package/dist/components/HStack/HStack.d.mts +16 -0
- package/dist/components/HStack/HStack.d.mts.map +1 -0
- package/dist/components/HStack/HStack.mjs +16 -0
- package/dist/components/HStack/HStack.mjs.map +1 -0
- package/dist/components/HStack/index.d.mts +1 -0
- package/dist/components/Modal/Modal.cjs +81 -0
- package/dist/components/Modal/Modal.d.cts +64 -0
- package/dist/components/Modal/Modal.d.cts.map +1 -0
- package/dist/components/Modal/Modal.d.mts +65 -0
- package/dist/components/Modal/Modal.d.mts.map +1 -0
- package/dist/components/Modal/Modal.mjs +80 -0
- package/dist/components/Modal/Modal.mjs.map +1 -0
- package/dist/components/Modal/Modal.styles.cjs +49 -0
- package/dist/components/Modal/Modal.styles.d.cts +108 -0
- package/dist/components/Modal/Modal.styles.d.cts.map +1 -0
- package/dist/components/Modal/Modal.styles.d.mts +108 -0
- package/dist/components/Modal/Modal.styles.d.mts.map +1 -0
- package/dist/components/Modal/Modal.styles.mjs +49 -0
- package/dist/components/Modal/Modal.styles.mjs.map +1 -0
- package/dist/components/Modal/index.d.mts +2 -0
- package/dist/components/Primitive/Primitive.cjs +35 -0
- package/dist/components/Primitive/Primitive.d.cts +77 -0
- package/dist/components/Primitive/Primitive.d.cts.map +1 -0
- package/dist/components/Primitive/Primitive.d.mts +77 -0
- package/dist/components/Primitive/Primitive.d.mts.map +1 -0
- package/dist/components/Primitive/Primitive.mjs +34 -0
- package/dist/components/Primitive/Primitive.mjs.map +1 -0
- package/dist/components/Primitive/index.d.mts +1 -0
- package/dist/components/Radio/Radio.cjs +97 -0
- package/dist/components/Radio/Radio.d.cts +48 -0
- package/dist/components/Radio/Radio.d.cts.map +1 -0
- package/dist/components/Radio/Radio.d.mts +49 -0
- package/dist/components/Radio/Radio.d.mts.map +1 -0
- package/dist/components/Radio/Radio.mjs +94 -0
- package/dist/components/Radio/Radio.mjs.map +1 -0
- package/dist/components/Radio/Radio.styles.cjs +32 -0
- package/dist/components/Radio/Radio.styles.mjs +32 -0
- package/dist/components/Radio/Radio.styles.mjs.map +1 -0
- package/dist/components/Radio/index.d.mts +1 -0
- package/dist/components/RatioChart/RatioChart.cjs +182 -0
- package/dist/components/RatioChart/RatioChart.d.cts +66 -0
- package/dist/components/RatioChart/RatioChart.d.cts.map +1 -0
- package/dist/components/RatioChart/RatioChart.d.mts +66 -0
- package/dist/components/RatioChart/RatioChart.d.mts.map +1 -0
- package/dist/components/RatioChart/RatioChart.mjs +181 -0
- package/dist/components/RatioChart/RatioChart.mjs.map +1 -0
- package/dist/components/RatioChart/RatioChart.styles.cjs +42 -0
- package/dist/components/RatioChart/RatioChart.styles.mjs +42 -0
- package/dist/components/RatioChart/RatioChart.styles.mjs.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.cjs +121 -0
- package/dist/components/RatioChart/RatioChartEditor.d.cts +44 -0
- package/dist/components/RatioChart/RatioChartEditor.d.cts.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.d.mts +44 -0
- package/dist/components/RatioChart/RatioChartEditor.d.mts.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.mjs +120 -0
- package/dist/components/RatioChart/RatioChartEditor.mjs.map +1 -0
- package/dist/components/RatioChart/RatioChartEditor.styles.cjs +23 -0
- package/dist/components/RatioChart/RatioChartEditor.styles.mjs +23 -0
- package/dist/components/RatioChart/RatioChartEditor.styles.mjs.map +1 -0
- package/dist/components/RatioChart/index.d.mts +2 -0
- package/dist/components/Select/Select.cjs +84 -0
- package/dist/components/Select/Select.d.cts +60 -0
- package/dist/components/Select/Select.d.cts.map +1 -0
- package/dist/components/Select/Select.d.mts +60 -0
- package/dist/components/Select/Select.d.mts.map +1 -0
- package/dist/components/Select/Select.mjs +82 -0
- package/dist/components/Select/Select.mjs.map +1 -0
- package/dist/components/Select/Select.styles.cjs +44 -0
- package/dist/components/Select/Select.styles.d.cts +72 -0
- package/dist/components/Select/Select.styles.d.cts.map +1 -0
- package/dist/components/Select/Select.styles.d.mts +72 -0
- package/dist/components/Select/Select.styles.d.mts.map +1 -0
- package/dist/components/Select/Select.styles.mjs +44 -0
- package/dist/components/Select/Select.styles.mjs.map +1 -0
- package/dist/components/Select/index.d.mts +2 -0
- package/dist/components/Separator/Separator.cjs +21 -0
- package/dist/components/Separator/Separator.d.cts +18 -0
- package/dist/components/Separator/Separator.d.cts.map +1 -0
- package/dist/components/Separator/Separator.d.mts +19 -0
- package/dist/components/Separator/Separator.d.mts.map +1 -0
- package/dist/components/Separator/Separator.mjs +20 -0
- package/dist/components/Separator/Separator.mjs.map +1 -0
- package/dist/components/Separator/Separator.styles.cjs +15 -0
- package/dist/components/Separator/Separator.styles.d.cts +24 -0
- package/dist/components/Separator/Separator.styles.d.cts.map +1 -0
- package/dist/components/Separator/Separator.styles.d.mts +24 -0
- package/dist/components/Separator/Separator.styles.d.mts.map +1 -0
- package/dist/components/Separator/Separator.styles.mjs +15 -0
- package/dist/components/Separator/Separator.styles.mjs.map +1 -0
- package/dist/components/Separator/index.d.mts +2 -0
- package/dist/components/Spacer/Spacer.cjs +20 -0
- package/dist/components/Spacer/Spacer.d.cts +18 -0
- package/dist/components/Spacer/Spacer.d.cts.map +1 -0
- package/dist/components/Spacer/Spacer.d.mts +19 -0
- package/dist/components/Spacer/Spacer.d.mts.map +1 -0
- package/dist/components/Spacer/Spacer.mjs +19 -0
- package/dist/components/Spacer/Spacer.mjs.map +1 -0
- package/dist/components/Spacer/Spacer.styles.cjs +24 -0
- package/dist/components/Spacer/Spacer.styles.d.cts +51 -0
- package/dist/components/Spacer/Spacer.styles.d.cts.map +1 -0
- package/dist/components/Spacer/Spacer.styles.d.mts +51 -0
- package/dist/components/Spacer/Spacer.styles.d.mts.map +1 -0
- package/dist/components/Spacer/Spacer.styles.mjs +24 -0
- package/dist/components/Spacer/Spacer.styles.mjs.map +1 -0
- package/dist/components/Spacer/index.d.mts +2 -0
- package/dist/components/Stack/Stack.cjs +28 -0
- package/dist/components/Stack/Stack.d.cts +26 -0
- package/dist/components/Stack/Stack.d.cts.map +1 -0
- package/dist/components/Stack/Stack.d.mts +27 -0
- package/dist/components/Stack/Stack.d.mts.map +1 -0
- package/dist/components/Stack/Stack.mjs +27 -0
- package/dist/components/Stack/Stack.mjs.map +1 -0
- package/dist/components/Stack/Stack.styles.cjs +42 -0
- package/dist/components/Stack/Stack.styles.d.cts +84 -0
- package/dist/components/Stack/Stack.styles.d.cts.map +1 -0
- package/dist/components/Stack/Stack.styles.d.mts +84 -0
- package/dist/components/Stack/Stack.styles.d.mts.map +1 -0
- package/dist/components/Stack/Stack.styles.mjs +42 -0
- package/dist/components/Stack/Stack.styles.mjs.map +1 -0
- package/dist/components/Stack/index.d.mts +2 -0
- package/dist/components/Tab/Tab.cjs +103 -0
- package/dist/components/Tab/Tab.d.cts +84 -0
- package/dist/components/Tab/Tab.d.cts.map +1 -0
- package/dist/components/Tab/Tab.d.mts +85 -0
- package/dist/components/Tab/Tab.d.mts.map +1 -0
- package/dist/components/Tab/Tab.mjs +102 -0
- package/dist/components/Tab/Tab.mjs.map +1 -0
- package/dist/components/Tab/Tab.styles.cjs +35 -0
- package/dist/components/Tab/Tab.styles.d.cts +51 -0
- package/dist/components/Tab/Tab.styles.d.cts.map +1 -0
- package/dist/components/Tab/Tab.styles.d.mts +51 -0
- package/dist/components/Tab/Tab.styles.d.mts.map +1 -0
- package/dist/components/Tab/Tab.styles.mjs +35 -0
- package/dist/components/Tab/Tab.styles.mjs.map +1 -0
- package/dist/components/Tab/index.d.mts +2 -0
- package/dist/components/Text/Text.cjs +20 -0
- package/dist/components/Text/Text.d.cts +24 -0
- package/dist/components/Text/Text.d.cts.map +1 -0
- package/dist/components/Text/Text.d.mts +25 -0
- package/dist/components/Text/Text.d.mts.map +1 -0
- package/dist/components/Text/Text.mjs +20 -0
- package/dist/components/Text/Text.mjs.map +1 -0
- package/dist/components/Text/Text.styles.cjs +58 -0
- package/dist/components/Text/Text.styles.d.cts +150 -0
- package/dist/components/Text/Text.styles.d.cts.map +1 -0
- package/dist/components/Text/Text.styles.d.mts +150 -0
- package/dist/components/Text/Text.styles.d.mts.map +1 -0
- package/dist/components/Text/Text.styles.mjs +58 -0
- package/dist/components/Text/Text.styles.mjs.map +1 -0
- package/dist/components/Text/index.d.mts +2 -0
- package/dist/components/TextArea/TextArea.cjs +52 -0
- package/dist/components/TextArea/TextArea.d.cts +42 -0
- package/dist/components/TextArea/TextArea.d.cts.map +1 -0
- package/dist/components/TextArea/TextArea.d.mts +43 -0
- package/dist/components/TextArea/TextArea.d.mts.map +1 -0
- package/dist/components/TextArea/TextArea.mjs +51 -0
- package/dist/components/TextArea/TextArea.mjs.map +1 -0
- package/dist/components/TextArea/TextArea.styles.cjs +33 -0
- package/dist/components/TextArea/TextArea.styles.d.cts +84 -0
- package/dist/components/TextArea/TextArea.styles.d.cts.map +1 -0
- package/dist/components/TextArea/TextArea.styles.d.mts +84 -0
- package/dist/components/TextArea/TextArea.styles.d.mts.map +1 -0
- package/dist/components/TextArea/TextArea.styles.mjs +33 -0
- package/dist/components/TextArea/TextArea.styles.mjs.map +1 -0
- package/dist/components/TextArea/index.d.mts +1 -0
- package/dist/components/TextInput/TextInput.cjs +48 -0
- package/dist/components/TextInput/TextInput.d.cts +32 -0
- package/dist/components/TextInput/TextInput.d.cts.map +1 -0
- package/dist/components/TextInput/TextInput.d.mts +33 -0
- package/dist/components/TextInput/TextInput.d.mts.map +1 -0
- package/dist/components/TextInput/TextInput.mjs +47 -0
- package/dist/components/TextInput/TextInput.mjs.map +1 -0
- package/dist/components/TextInput/TextInput.styles.cjs +43 -0
- package/dist/components/TextInput/TextInput.styles.d.cts +81 -0
- package/dist/components/TextInput/TextInput.styles.d.cts.map +1 -0
- package/dist/components/TextInput/TextInput.styles.d.mts +81 -0
- package/dist/components/TextInput/TextInput.styles.d.mts.map +1 -0
- package/dist/components/TextInput/TextInput.styles.mjs +43 -0
- package/dist/components/TextInput/TextInput.styles.mjs.map +1 -0
- package/dist/components/TextInput/index.d.mts +2 -0
- package/dist/components/Toast/Toast.cjs +42 -0
- package/dist/components/Toast/Toast.d.cts +27 -0
- package/dist/components/Toast/Toast.d.cts.map +1 -0
- package/dist/components/Toast/Toast.d.mts +27 -0
- package/dist/components/Toast/Toast.d.mts.map +1 -0
- package/dist/components/Toast/Toast.mjs +39 -0
- package/dist/components/Toast/Toast.mjs.map +1 -0
- package/dist/components/Toast/Toast.styles.cjs +20 -0
- package/dist/components/Toast/Toast.styles.d.cts +36 -0
- package/dist/components/Toast/Toast.styles.d.cts.map +1 -0
- package/dist/components/Toast/Toast.styles.d.mts +36 -0
- package/dist/components/Toast/Toast.styles.d.mts.map +1 -0
- package/dist/components/Toast/Toast.styles.mjs +20 -0
- package/dist/components/Toast/Toast.styles.mjs.map +1 -0
- package/dist/components/Toast/index.d.mts +2 -0
- package/dist/components/Toggle/Toggle.cjs +71 -0
- package/dist/components/Toggle/Toggle.d.cts +44 -0
- package/dist/components/Toggle/Toggle.d.cts.map +1 -0
- package/dist/components/Toggle/Toggle.d.mts +46 -0
- package/dist/components/Toggle/Toggle.d.mts.map +1 -0
- package/dist/components/Toggle/Toggle.mjs +70 -0
- package/dist/components/Toggle/Toggle.mjs.map +1 -0
- package/dist/components/Toggle/Toggle.styles.cjs +31 -0
- package/dist/components/Toggle/Toggle.styles.d.cts +75 -0
- package/dist/components/Toggle/Toggle.styles.d.cts.map +1 -0
- package/dist/components/Toggle/Toggle.styles.d.mts +75 -0
- package/dist/components/Toggle/Toggle.styles.d.mts.map +1 -0
- package/dist/components/Toggle/Toggle.styles.mjs +31 -0
- package/dist/components/Toggle/Toggle.styles.mjs.map +1 -0
- package/dist/components/Toggle/index.d.mts +1 -0
- package/dist/components/VStack/VStack.cjs +17 -0
- package/dist/components/VStack/VStack.d.cts +15 -0
- package/dist/components/VStack/VStack.d.cts.map +1 -0
- package/dist/components/VStack/VStack.d.mts +16 -0
- package/dist/components/VStack/VStack.d.mts.map +1 -0
- package/dist/components/VStack/VStack.mjs +16 -0
- package/dist/components/VStack/VStack.mjs.map +1 -0
- package/dist/components/VStack/index.d.mts +1 -0
- package/dist/components/index.d.mts +74 -0
- package/dist/hooks/field/useFieldContext.cjs +18 -0
- package/dist/hooks/field/useFieldContext.mjs +17 -0
- package/dist/hooks/field/useFieldContext.mjs.map +1 -0
- package/dist/hooks/ratioChart/useRatioChartContext.cjs +14 -0
- package/dist/hooks/ratioChart/useRatioChartContext.mjs +13 -0
- package/dist/hooks/ratioChart/useRatioChartContext.mjs.map +1 -0
- package/dist/index.cjs +73 -0
- package/dist/index.d.cts +50 -0
- package/dist/index.d.mts +52 -207
- package/dist/index.mjs +35 -658
- package/dist/utils/converter/converter.cjs +9 -0
- package/dist/utils/converter/converter.d.cts +5 -0
- package/dist/utils/converter/converter.d.cts.map +1 -0
- package/dist/utils/converter/converter.d.mts +5 -0
- package/dist/utils/converter/converter.d.mts.map +1 -0
- package/dist/utils/converter/converter.mjs +9 -0
- package/dist/utils/converter/converter.mjs.map +1 -0
- package/dist/utils/index.d.mts +6 -0
- package/dist/utils/mergeStyles/index.d.mts +1 -0
- package/dist/utils/mergeStyles/mergeStyles.cjs +18 -0
- package/dist/utils/mergeStyles/mergeStyles.d.cts +14 -0
- package/dist/utils/mergeStyles/mergeStyles.d.cts.map +1 -0
- package/dist/utils/mergeStyles/mergeStyles.d.mts +14 -0
- package/dist/utils/mergeStyles/mergeStyles.d.mts.map +1 -0
- package/dist/utils/mergeStyles/mergeStyles.mjs +18 -0
- package/dist/utils/mergeStyles/mergeStyles.mjs.map +1 -0
- package/dist/utils/polymorphic/index.d.mts +1 -0
- package/dist/utils/polymorphic/polymorphic.d.cts +24 -0
- package/dist/utils/polymorphic/polymorphic.d.cts.map +1 -0
- package/dist/utils/polymorphic/polymorphic.d.mts +24 -0
- package/dist/utils/polymorphic/polymorphic.d.mts.map +1 -0
- package/dist/utils/splitter/splitter.cjs +12 -0
- package/dist/utils/splitter/splitter.d.cts +5 -0
- package/dist/utils/splitter/splitter.d.cts.map +1 -0
- package/dist/utils/splitter/splitter.d.mts +5 -0
- package/dist/utils/splitter/splitter.d.mts.map +1 -0
- package/dist/utils/splitter/splitter.mjs +12 -0
- package/dist/utils/splitter/splitter.mjs.map +1 -0
- package/package.json +22 -10
- package/src/styles/global.css +162 -79
- package/dist/index.d.ts +0 -207
- package/dist/index.js +0 -674
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PolymorphicProps } from "../../utils/polymorphic/polymorphic.mjs";
|
|
2
|
+
import "../../utils/polymorphic/index.mjs";
|
|
3
|
+
import { StackVariants } from "./Stack.styles.mjs";
|
|
4
|
+
import React, { ElementType } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Stack/Stack.d.ts
|
|
7
|
+
type StackProps<E extends ElementType = 'div'> = PolymorphicProps<E, StackVariants>;
|
|
8
|
+
/**
|
|
9
|
+
* Stack is a layout component that arranges its children in a horizontal or vertical line.
|
|
10
|
+
* It abstracts Flexbox behaviors to easily manage spacing, alignment, and direction.
|
|
11
|
+
*/
|
|
12
|
+
declare const Stack: {
|
|
13
|
+
<E extends ElementType = "div">({
|
|
14
|
+
as,
|
|
15
|
+
direction,
|
|
16
|
+
gap,
|
|
17
|
+
align,
|
|
18
|
+
justify,
|
|
19
|
+
className,
|
|
20
|
+
children,
|
|
21
|
+
...props
|
|
22
|
+
}: StackProps<E>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Stack, StackProps };
|
|
27
|
+
//# sourceMappingURL=Stack.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.mts","names":[],"sources":["../../../src/components/Stack/Stack.tsx"],"mappings":";;;;;;KAKY,UAAA,WAAqB,WAAA,YAAuB,gBAAA,CACtD,CAAA,EACA,aAAA;;;AAFF;;cASa,KAAA;EAAA,WAAmB,WAAA;IAAW,EAAA;IAAA,SAAA;IAAA,GAAA;IAAA,KAAA;IAAA,OAAA;IAAA,SAAA;IAAA,QAAA;IAAA,GAAA;EAAA,GASxC,UAAA,CAAW,CAAA,IAAE,KAAA,CAAA,YAAA,eAAA,KAAA,CAAA,qBAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { mergeStyles } from "../../utils/mergeStyles/mergeStyles.mjs";
|
|
2
|
+
import { stack } from "./Stack.styles.mjs";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/Stack/Stack.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Stack is a layout component that arranges its children in a horizontal or vertical line.
|
|
8
|
+
* It abstracts Flexbox behaviors to easily manage spacing, alignment, and direction.
|
|
9
|
+
*/
|
|
10
|
+
const Stack = ({ as, direction, gap, align, justify, className = "", children, ...props }) => {
|
|
11
|
+
const Component = as || "div";
|
|
12
|
+
const classes = stack({
|
|
13
|
+
direction,
|
|
14
|
+
gap,
|
|
15
|
+
align,
|
|
16
|
+
justify
|
|
17
|
+
});
|
|
18
|
+
return React.createElement(Component, {
|
|
19
|
+
className: mergeStyles(classes, className),
|
|
20
|
+
...props
|
|
21
|
+
}, children);
|
|
22
|
+
};
|
|
23
|
+
Stack.displayName = "Stack";
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { Stack };
|
|
27
|
+
//# sourceMappingURL=Stack.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.mjs","names":[],"sources":["../../../src/components/Stack/Stack.tsx"],"sourcesContent":["import React, { type ElementType } from 'react';\nimport { stack, type StackVariants } from './Stack.styles';\nimport { mergeStyles } from '../../utils';\nimport type { PolymorphicProps } from '../../utils/polymorphic';\n\nexport type StackProps<E extends ElementType = 'div'> = PolymorphicProps<\n E,\n StackVariants\n>;\n\n/**\n * Stack is a layout component that arranges its children in a horizontal or vertical line.\n * It abstracts Flexbox behaviors to easily manage spacing, alignment, and direction.\n */\nexport const Stack = <E extends ElementType = 'div'>({\n as,\n direction,\n gap,\n align,\n justify,\n className = '',\n children,\n ...props\n}: StackProps<E>) => {\n const Component = as || 'div';\n\n const classes = stack({ direction, gap, align, justify });\n\n return React.createElement(\n Component,\n {\n className: mergeStyles(classes, className),\n ...props,\n },\n children,\n );\n};\n\nStack.displayName = 'Stack';\n"],"mappings":";;;;;;;;;AAcA,MAAa,SAAwC,EACnD,IACA,WACA,KACA,OACA,SACA,YAAY,IACZ,UACA,GAAG,YACgB;CACnB,MAAM,YAAY,MAAM;CAExB,MAAM,UAAU,MAAM;EAAE;EAAW;EAAK;EAAO;EAAS,CAAC;AAEzD,QAAO,MAAM,cACX,WACA;EACE,WAAW,YAAY,SAAS,UAAU;EAC1C,GAAG;EACJ,EACD,SACD;;AAGH,MAAM,cAAc"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let tailwind_variants = require("tailwind-variants");
|
|
3
|
+
|
|
4
|
+
//#region src/components/Stack/Stack.styles.ts
|
|
5
|
+
const stack = (0, tailwind_variants.tv)({
|
|
6
|
+
base: "flex",
|
|
7
|
+
variants: {
|
|
8
|
+
direction: {
|
|
9
|
+
horizontal: "flex-row",
|
|
10
|
+
vertical: "flex-col"
|
|
11
|
+
},
|
|
12
|
+
gap: {
|
|
13
|
+
none: "gap-0",
|
|
14
|
+
xs: "gap-1",
|
|
15
|
+
sm: "gap-2",
|
|
16
|
+
md: "gap-4",
|
|
17
|
+
lg: "gap-6",
|
|
18
|
+
xl: "gap-8"
|
|
19
|
+
},
|
|
20
|
+
align: {
|
|
21
|
+
start: "items-start",
|
|
22
|
+
center: "items-center",
|
|
23
|
+
end: "items-end",
|
|
24
|
+
stretch: "items-stretch"
|
|
25
|
+
},
|
|
26
|
+
justify: {
|
|
27
|
+
start: "justify-start",
|
|
28
|
+
center: "justify-center",
|
|
29
|
+
end: "justify-end",
|
|
30
|
+
between: "justify-between"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultVariants: {
|
|
34
|
+
direction: "vertical",
|
|
35
|
+
gap: "md",
|
|
36
|
+
align: "stretch",
|
|
37
|
+
justify: "start"
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.stack = stack;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as tailwind_variants25 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Stack/Stack.styles.d.ts
|
|
5
|
+
declare const stack: tailwind_variants25.TVReturnType<{
|
|
6
|
+
direction: {
|
|
7
|
+
horizontal: string;
|
|
8
|
+
vertical: string;
|
|
9
|
+
};
|
|
10
|
+
gap: {
|
|
11
|
+
none: string;
|
|
12
|
+
xs: string;
|
|
13
|
+
sm: string;
|
|
14
|
+
md: string;
|
|
15
|
+
lg: string;
|
|
16
|
+
xl: string;
|
|
17
|
+
};
|
|
18
|
+
align: {
|
|
19
|
+
start: string;
|
|
20
|
+
center: string;
|
|
21
|
+
end: string;
|
|
22
|
+
stretch: string;
|
|
23
|
+
};
|
|
24
|
+
justify: {
|
|
25
|
+
start: string;
|
|
26
|
+
center: string;
|
|
27
|
+
end: string;
|
|
28
|
+
between: string;
|
|
29
|
+
};
|
|
30
|
+
}, undefined, "flex", {
|
|
31
|
+
direction: {
|
|
32
|
+
horizontal: string;
|
|
33
|
+
vertical: string;
|
|
34
|
+
};
|
|
35
|
+
gap: {
|
|
36
|
+
none: string;
|
|
37
|
+
xs: string;
|
|
38
|
+
sm: string;
|
|
39
|
+
md: string;
|
|
40
|
+
lg: string;
|
|
41
|
+
xl: string;
|
|
42
|
+
};
|
|
43
|
+
align: {
|
|
44
|
+
start: string;
|
|
45
|
+
center: string;
|
|
46
|
+
end: string;
|
|
47
|
+
stretch: string;
|
|
48
|
+
};
|
|
49
|
+
justify: {
|
|
50
|
+
start: string;
|
|
51
|
+
center: string;
|
|
52
|
+
end: string;
|
|
53
|
+
between: string;
|
|
54
|
+
};
|
|
55
|
+
}, undefined, tailwind_variants25.TVReturnType<{
|
|
56
|
+
direction: {
|
|
57
|
+
horizontal: string;
|
|
58
|
+
vertical: string;
|
|
59
|
+
};
|
|
60
|
+
gap: {
|
|
61
|
+
none: string;
|
|
62
|
+
xs: string;
|
|
63
|
+
sm: string;
|
|
64
|
+
md: string;
|
|
65
|
+
lg: string;
|
|
66
|
+
xl: string;
|
|
67
|
+
};
|
|
68
|
+
align: {
|
|
69
|
+
start: string;
|
|
70
|
+
center: string;
|
|
71
|
+
end: string;
|
|
72
|
+
stretch: string;
|
|
73
|
+
};
|
|
74
|
+
justify: {
|
|
75
|
+
start: string;
|
|
76
|
+
center: string;
|
|
77
|
+
end: string;
|
|
78
|
+
between: string;
|
|
79
|
+
};
|
|
80
|
+
}, undefined, "flex", unknown, unknown, undefined>>;
|
|
81
|
+
type StackVariants = VariantProps<typeof stack>;
|
|
82
|
+
//#endregion
|
|
83
|
+
export { StackVariants };
|
|
84
|
+
//# sourceMappingURL=Stack.styles.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.styles.d.cts","names":[],"sources":["../../../src/components/Stack/Stack.styles.ts"],"mappings":";;;;cAEa,KAAA,EAkCX,mBAAA,CAlCgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkChB,mBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as tailwind_variants5 from "tailwind-variants";
|
|
2
|
+
import { VariantProps } from "tailwind-variants";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Stack/Stack.styles.d.ts
|
|
5
|
+
declare const stack: tailwind_variants5.TVReturnType<{
|
|
6
|
+
direction: {
|
|
7
|
+
horizontal: string;
|
|
8
|
+
vertical: string;
|
|
9
|
+
};
|
|
10
|
+
gap: {
|
|
11
|
+
none: string;
|
|
12
|
+
xs: string;
|
|
13
|
+
sm: string;
|
|
14
|
+
md: string;
|
|
15
|
+
lg: string;
|
|
16
|
+
xl: string;
|
|
17
|
+
};
|
|
18
|
+
align: {
|
|
19
|
+
start: string;
|
|
20
|
+
center: string;
|
|
21
|
+
end: string;
|
|
22
|
+
stretch: string;
|
|
23
|
+
};
|
|
24
|
+
justify: {
|
|
25
|
+
start: string;
|
|
26
|
+
center: string;
|
|
27
|
+
end: string;
|
|
28
|
+
between: string;
|
|
29
|
+
};
|
|
30
|
+
}, undefined, "flex", {
|
|
31
|
+
direction: {
|
|
32
|
+
horizontal: string;
|
|
33
|
+
vertical: string;
|
|
34
|
+
};
|
|
35
|
+
gap: {
|
|
36
|
+
none: string;
|
|
37
|
+
xs: string;
|
|
38
|
+
sm: string;
|
|
39
|
+
md: string;
|
|
40
|
+
lg: string;
|
|
41
|
+
xl: string;
|
|
42
|
+
};
|
|
43
|
+
align: {
|
|
44
|
+
start: string;
|
|
45
|
+
center: string;
|
|
46
|
+
end: string;
|
|
47
|
+
stretch: string;
|
|
48
|
+
};
|
|
49
|
+
justify: {
|
|
50
|
+
start: string;
|
|
51
|
+
center: string;
|
|
52
|
+
end: string;
|
|
53
|
+
between: string;
|
|
54
|
+
};
|
|
55
|
+
}, undefined, tailwind_variants5.TVReturnType<{
|
|
56
|
+
direction: {
|
|
57
|
+
horizontal: string;
|
|
58
|
+
vertical: string;
|
|
59
|
+
};
|
|
60
|
+
gap: {
|
|
61
|
+
none: string;
|
|
62
|
+
xs: string;
|
|
63
|
+
sm: string;
|
|
64
|
+
md: string;
|
|
65
|
+
lg: string;
|
|
66
|
+
xl: string;
|
|
67
|
+
};
|
|
68
|
+
align: {
|
|
69
|
+
start: string;
|
|
70
|
+
center: string;
|
|
71
|
+
end: string;
|
|
72
|
+
stretch: string;
|
|
73
|
+
};
|
|
74
|
+
justify: {
|
|
75
|
+
start: string;
|
|
76
|
+
center: string;
|
|
77
|
+
end: string;
|
|
78
|
+
between: string;
|
|
79
|
+
};
|
|
80
|
+
}, undefined, "flex", unknown, unknown, undefined>>;
|
|
81
|
+
type StackVariants = VariantProps<typeof stack>;
|
|
82
|
+
//#endregion
|
|
83
|
+
export { StackVariants };
|
|
84
|
+
//# sourceMappingURL=Stack.styles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.styles.d.mts","names":[],"sources":["../../../src/components/Stack/Stack.styles.ts"],"mappings":";;;;cAEa,KAAA,EAkCX,kBAAA,CAlCgB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkChB,kBAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,aAAA,GAAgB,YAAA,QAAoB,KAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { tv } from "tailwind-variants";
|
|
2
|
+
|
|
3
|
+
//#region src/components/Stack/Stack.styles.ts
|
|
4
|
+
const stack = tv({
|
|
5
|
+
base: "flex",
|
|
6
|
+
variants: {
|
|
7
|
+
direction: {
|
|
8
|
+
horizontal: "flex-row",
|
|
9
|
+
vertical: "flex-col"
|
|
10
|
+
},
|
|
11
|
+
gap: {
|
|
12
|
+
none: "gap-0",
|
|
13
|
+
xs: "gap-1",
|
|
14
|
+
sm: "gap-2",
|
|
15
|
+
md: "gap-4",
|
|
16
|
+
lg: "gap-6",
|
|
17
|
+
xl: "gap-8"
|
|
18
|
+
},
|
|
19
|
+
align: {
|
|
20
|
+
start: "items-start",
|
|
21
|
+
center: "items-center",
|
|
22
|
+
end: "items-end",
|
|
23
|
+
stretch: "items-stretch"
|
|
24
|
+
},
|
|
25
|
+
justify: {
|
|
26
|
+
start: "justify-start",
|
|
27
|
+
center: "justify-center",
|
|
28
|
+
end: "justify-end",
|
|
29
|
+
between: "justify-between"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
direction: "vertical",
|
|
34
|
+
gap: "md",
|
|
35
|
+
align: "stretch",
|
|
36
|
+
justify: "start"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { stack };
|
|
42
|
+
//# sourceMappingURL=Stack.styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.styles.mjs","names":[],"sources":["../../../src/components/Stack/Stack.styles.ts"],"sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const stack = tv({\n base: 'flex',\n variants: {\n direction: {\n horizontal: 'flex-row',\n vertical: 'flex-col',\n },\n gap: {\n none: 'gap-0',\n xs: 'gap-1',\n sm: 'gap-2',\n md: 'gap-4',\n lg: 'gap-6',\n xl: 'gap-8',\n },\n align: {\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n stretch: 'items-stretch',\n },\n justify: {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n },\n },\n defaultVariants: {\n direction: 'vertical',\n gap: 'md',\n align: 'stretch',\n justify: 'start',\n },\n});\n\nexport type StackVariants = VariantProps<typeof stack>;\n"],"mappings":";;;AAEA,MAAa,QAAQ,GAAG;CACtB,MAAM;CACN,UAAU;EACR,WAAW;GACT,YAAY;GACZ,UAAU;GACX;EACD,KAAK;GACH,MAAM;GACN,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,OAAO;GACL,OAAO;GACP,QAAQ;GACR,KAAK;GACL,SAAS;GACV;EACD,SAAS;GACP,OAAO;GACP,QAAQ;GACR,KAAK;GACL,SAAS;GACV;EACF;CACD,iBAAiB;EACf,WAAW;EACX,KAAK;EACL,OAAO;EACP,SAAS;EACV;CACF,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_Primitive = require('../Primitive/Primitive.cjs');
|
|
3
|
+
const require_Tab_styles = require('./Tab.styles.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
|
|
8
|
+
//#region src/components/Tab/Tab.tsx
|
|
9
|
+
const TabContext = react.createContext(null);
|
|
10
|
+
const useTabContext = () => {
|
|
11
|
+
const ctx = react.useContext(TabContext);
|
|
12
|
+
if (!ctx) throw new Error("Tab.* must be used within Tab.Root");
|
|
13
|
+
return ctx;
|
|
14
|
+
};
|
|
15
|
+
const TabRoot = ({ variant, scrollAlign = "center", defaultValue = "", value: valueProp, onValueChange, id, className, children }) => {
|
|
16
|
+
const [uncontrolled, setUncontrolled] = react.useState(defaultValue);
|
|
17
|
+
const isControlled = valueProp !== void 0;
|
|
18
|
+
const value = (isControlled ? valueProp : uncontrolled) ?? "";
|
|
19
|
+
const setValue = (v) => {
|
|
20
|
+
if (!isControlled) setUncontrolled(v);
|
|
21
|
+
onValueChange?.(v);
|
|
22
|
+
};
|
|
23
|
+
const reactId = react.useId();
|
|
24
|
+
const baseId = id ?? `tab-${reactId}`;
|
|
25
|
+
const listRef = react.useRef(null);
|
|
26
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabContext.Provider, {
|
|
27
|
+
value: {
|
|
28
|
+
variant,
|
|
29
|
+
value,
|
|
30
|
+
setValue,
|
|
31
|
+
baseId,
|
|
32
|
+
listRef,
|
|
33
|
+
scrollAlign
|
|
34
|
+
},
|
|
35
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
36
|
+
className,
|
|
37
|
+
children
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
TabRoot.displayName = "Tab.Root";
|
|
42
|
+
const TabList = ({ className, ...props }) => {
|
|
43
|
+
const { variant, listRef } = useTabContext();
|
|
44
|
+
const { list } = require_Tab_styles.tabs({ variant });
|
|
45
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
46
|
+
ref: listRef,
|
|
47
|
+
role: "tablist",
|
|
48
|
+
className: list({ className }),
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
TabList.displayName = "Tab.List";
|
|
53
|
+
const TabItem = ({ value, asChild, className, onClick, ...props }) => {
|
|
54
|
+
const { variant, value: activeValue, setValue, baseId, listRef, scrollAlign } = useTabContext();
|
|
55
|
+
const active = activeValue === value;
|
|
56
|
+
const { item } = require_Tab_styles.tabs({ variant });
|
|
57
|
+
const handleClick = (e) => {
|
|
58
|
+
setValue(value);
|
|
59
|
+
const list = listRef.current;
|
|
60
|
+
if (list && list.scrollWidth > list.clientWidth + 1) e.currentTarget.scrollIntoView({
|
|
61
|
+
behavior: "smooth",
|
|
62
|
+
block: "nearest",
|
|
63
|
+
inline: scrollAlign ?? "center"
|
|
64
|
+
});
|
|
65
|
+
onClick?.(e);
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Primitive.Primitive.button, {
|
|
68
|
+
asChild,
|
|
69
|
+
role: "tab",
|
|
70
|
+
"aria-selected": active,
|
|
71
|
+
id: `${baseId}-TabItem-${value}`,
|
|
72
|
+
"aria-controls": `${baseId}-content-${value}`,
|
|
73
|
+
className: item({ className }),
|
|
74
|
+
onClick: handleClick,
|
|
75
|
+
...props
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
TabItem.displayName = "Tab.Item";
|
|
79
|
+
const TabContent = ({ value, forceMount = false, asChild, className, children, ...props }) => {
|
|
80
|
+
const { value: activeValue, baseId } = useTabContext();
|
|
81
|
+
const active = activeValue === value;
|
|
82
|
+
if (!forceMount && !active) return null;
|
|
83
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Primitive.Primitive.div, {
|
|
84
|
+
asChild,
|
|
85
|
+
role: "tabpanel",
|
|
86
|
+
id: `${baseId}-content-${value}`,
|
|
87
|
+
"aria-labelledby": `${baseId}-TabItem-${value}`,
|
|
88
|
+
hidden: !active,
|
|
89
|
+
className,
|
|
90
|
+
...props,
|
|
91
|
+
children
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
TabContent.displayName = "Tab.Content";
|
|
95
|
+
const Tab = Object.assign(TabRoot, {
|
|
96
|
+
Root: TabRoot,
|
|
97
|
+
List: TabList,
|
|
98
|
+
TabItem,
|
|
99
|
+
Content: TabContent
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
//#endregion
|
|
103
|
+
exports.Tab = Tab;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { PrimitiveProps } from "../Primitive/Primitive.cjs";
|
|
2
|
+
import { TabVariants } from "./Tab.styles.cjs";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Tab/Tab.d.ts
|
|
7
|
+
interface TabRootProps extends TabVariants {
|
|
8
|
+
scrollAlign?: ScrollLogicalPosition;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
onValueChange?: (v: string) => void;
|
|
12
|
+
id?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
children: React$1.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
type TabListProps = React$1.ComponentPropsWithoutRef<'div'> & {
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
};
|
|
19
|
+
interface TabTabItemProps extends React$1.ComponentPropsWithoutRef<'button'>, PrimitiveProps {
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
type TabContentProps = React$1.ComponentPropsWithoutRef<'div'> & {
|
|
23
|
+
value: string;
|
|
24
|
+
forceMount?: boolean;
|
|
25
|
+
asChild?: boolean;
|
|
26
|
+
};
|
|
27
|
+
declare const Tab: {
|
|
28
|
+
({
|
|
29
|
+
variant,
|
|
30
|
+
scrollAlign,
|
|
31
|
+
defaultValue,
|
|
32
|
+
value: valueProp,
|
|
33
|
+
onValueChange,
|
|
34
|
+
id,
|
|
35
|
+
className,
|
|
36
|
+
children
|
|
37
|
+
}: TabRootProps): react_jsx_runtime41.JSX.Element;
|
|
38
|
+
displayName: string;
|
|
39
|
+
} & {
|
|
40
|
+
Root: {
|
|
41
|
+
({
|
|
42
|
+
variant,
|
|
43
|
+
scrollAlign,
|
|
44
|
+
defaultValue,
|
|
45
|
+
value: valueProp,
|
|
46
|
+
onValueChange,
|
|
47
|
+
id,
|
|
48
|
+
className,
|
|
49
|
+
children
|
|
50
|
+
}: TabRootProps): react_jsx_runtime41.JSX.Element;
|
|
51
|
+
displayName: string;
|
|
52
|
+
};
|
|
53
|
+
List: {
|
|
54
|
+
({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}: TabListProps): react_jsx_runtime41.JSX.Element;
|
|
58
|
+
displayName: string;
|
|
59
|
+
};
|
|
60
|
+
TabItem: {
|
|
61
|
+
({
|
|
62
|
+
value,
|
|
63
|
+
asChild,
|
|
64
|
+
className,
|
|
65
|
+
onClick,
|
|
66
|
+
...props
|
|
67
|
+
}: TabTabItemProps): react_jsx_runtime41.JSX.Element;
|
|
68
|
+
displayName: string;
|
|
69
|
+
};
|
|
70
|
+
Content: {
|
|
71
|
+
({
|
|
72
|
+
value,
|
|
73
|
+
forceMount,
|
|
74
|
+
asChild,
|
|
75
|
+
className,
|
|
76
|
+
children,
|
|
77
|
+
...props
|
|
78
|
+
}: TabContentProps): react_jsx_runtime41.JSX.Element | null;
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps };
|
|
84
|
+
//# sourceMappingURL=Tab.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.d.cts","names":[],"sources":["../../../src/components/Tab/Tab.tsx"],"mappings":";;;;;;UAoBiB,YAAA,SAAqB,WAAA;EACpC,WAAA,GAAc,qBAAA;EACd,YAAA;EACA,KAAA;EACA,aAAA,IAAiB,CAAA;EACjB,EAAA;EACA,SAAA;EACA,QAAA,EAAU,OAAA,CAAM,SAAA;AAAA;AAAA,KA4CN,YAAA,GAAe,OAAA,CAAM,wBAAA;EAC/B,OAAA;AAAA;AAAA,UAkBe,eAAA,SACP,OAAA,CAAM,wBAAA,YAAoC,cAAA;EAClD,KAAA;AAAA;AAAA,KAkDU,eAAA,GAAkB,OAAA,CAAM,wBAAA;EAClC,KAAA;EACA,UAAA;EACA,OAAA;AAAA;AAAA,cAgCW,GAAA;EAAA;;;;;;;;;KA1IV,YAAA,GAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;;;;OAAZ,YAAA,GAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;OAoC2B,YAAA,GAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;OAyBnD,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;;OAuDf,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { PrimitiveProps } from "../Primitive/Primitive.mjs";
|
|
2
|
+
import "../Primitive/index.mjs";
|
|
3
|
+
import { TabVariants } from "./Tab.styles.mjs";
|
|
4
|
+
import * as React$1 from "react";
|
|
5
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/Tab/Tab.d.ts
|
|
8
|
+
interface TabRootProps extends TabVariants {
|
|
9
|
+
scrollAlign?: ScrollLogicalPosition;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
onValueChange?: (v: string) => void;
|
|
13
|
+
id?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
children: React$1.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
type TabListProps = React$1.ComponentPropsWithoutRef<'div'> & {
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
};
|
|
20
|
+
interface TabTabItemProps extends React$1.ComponentPropsWithoutRef<'button'>, PrimitiveProps {
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
23
|
+
type TabContentProps = React$1.ComponentPropsWithoutRef<'div'> & {
|
|
24
|
+
value: string;
|
|
25
|
+
forceMount?: boolean;
|
|
26
|
+
asChild?: boolean;
|
|
27
|
+
};
|
|
28
|
+
declare const Tab: {
|
|
29
|
+
({
|
|
30
|
+
variant,
|
|
31
|
+
scrollAlign,
|
|
32
|
+
defaultValue,
|
|
33
|
+
value: valueProp,
|
|
34
|
+
onValueChange,
|
|
35
|
+
id,
|
|
36
|
+
className,
|
|
37
|
+
children
|
|
38
|
+
}: TabRootProps): react_jsx_runtime37.JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
} & {
|
|
41
|
+
Root: {
|
|
42
|
+
({
|
|
43
|
+
variant,
|
|
44
|
+
scrollAlign,
|
|
45
|
+
defaultValue,
|
|
46
|
+
value: valueProp,
|
|
47
|
+
onValueChange,
|
|
48
|
+
id,
|
|
49
|
+
className,
|
|
50
|
+
children
|
|
51
|
+
}: TabRootProps): react_jsx_runtime37.JSX.Element;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
54
|
+
List: {
|
|
55
|
+
({
|
|
56
|
+
className,
|
|
57
|
+
...props
|
|
58
|
+
}: TabListProps): react_jsx_runtime37.JSX.Element;
|
|
59
|
+
displayName: string;
|
|
60
|
+
};
|
|
61
|
+
TabItem: {
|
|
62
|
+
({
|
|
63
|
+
value,
|
|
64
|
+
asChild,
|
|
65
|
+
className,
|
|
66
|
+
onClick,
|
|
67
|
+
...props
|
|
68
|
+
}: TabTabItemProps): react_jsx_runtime37.JSX.Element;
|
|
69
|
+
displayName: string;
|
|
70
|
+
};
|
|
71
|
+
Content: {
|
|
72
|
+
({
|
|
73
|
+
value,
|
|
74
|
+
forceMount,
|
|
75
|
+
asChild,
|
|
76
|
+
className,
|
|
77
|
+
children,
|
|
78
|
+
...props
|
|
79
|
+
}: TabContentProps): react_jsx_runtime37.JSX.Element | null;
|
|
80
|
+
displayName: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps };
|
|
85
|
+
//# sourceMappingURL=Tab.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.d.mts","names":[],"sources":["../../../src/components/Tab/Tab.tsx"],"mappings":";;;;;;;UAoBiB,YAAA,SAAqB,WAAA;EACpC,WAAA,GAAc,qBAAA;EACd,YAAA;EACA,KAAA;EACA,aAAA,IAAiB,CAAA;EACjB,EAAA;EACA,SAAA;EACA,QAAA,EAAU,OAAA,CAAM,SAAA;AAAA;AAAA,KA4CN,YAAA,GAAe,OAAA,CAAM,wBAAA;EAC/B,OAAA;AAAA;AAAA,UAkBe,eAAA,SACP,OAAA,CAAM,wBAAA,YAAoC,cAAA;EAClD,KAAA;AAAA;AAAA,KAkDU,eAAA,GAAkB,OAAA,CAAM,wBAAA;EAClC,KAAA;EACA,UAAA;EACA,OAAA;AAAA;AAAA,cAgCW,GAAA;EAAA;;;;;;;;;KA1IV,YAAA,GAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;;;;OAAZ,YAAA,GAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;OAoC2B,YAAA,GAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;OAyBnD,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;;;OAuDf,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|