@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 @@
|
|
|
1
|
+
{"version":3,"file":"converter.d.cts","names":[],"sources":["../../../src/utils/converter/converter.ts"],"mappings":";cAAa,cAAA,GAAkB,KAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converter.d.mts","names":[],"sources":["../../../src/utils/converter/converter.ts"],"mappings":";cAAa,cAAA,GAAkB,KAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"converter.mjs","names":[],"sources":["../../../src/utils/converter/converter.ts"],"sourcesContent":["export const convertPxToRem = (value?: number) => {\n if (value == null) return;\n return `${value / 16}rem`;\n};\n"],"mappings":";AAAA,MAAa,kBAAkB,UAAmB;AAChD,KAAI,SAAS,KAAM;AACnB,QAAO,GAAG,QAAQ,GAAG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PolymorphicProps, PolymorphicPropsWithoutRef } from "./polymorphic/polymorphic.mjs";
|
|
2
|
+
import "./polymorphic/index.mjs";
|
|
3
|
+
import { mergeStyles } from "./mergeStyles/mergeStyles.mjs";
|
|
4
|
+
import "./mergeStyles/index.mjs";
|
|
5
|
+
import { convertPxToRem } from "./converter/converter.mjs";
|
|
6
|
+
import { splitVariantProps } from "./splitter/splitter.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { mergeStyles } from "./mergeStyles.mjs";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let clsx = require("clsx");
|
|
3
|
+
let tailwind_merge = require("tailwind-merge");
|
|
4
|
+
|
|
5
|
+
//#region src/utils/mergeStyles/mergeStyles.ts
|
|
6
|
+
/**
|
|
7
|
+
* Combines class names with Tailwind CSS conflict resolution
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* mergeStyles('px-2 py-1', 'px-4') // => 'py-1 px-4'
|
|
11
|
+
* mergeStyles('text-red-500', condition && 'text-blue-500')
|
|
12
|
+
*/
|
|
13
|
+
function mergeStyles(...inputs) {
|
|
14
|
+
return (0, tailwind_merge.twMerge)((0, clsx.clsx)(inputs));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.mergeStyles = mergeStyles;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClassValue } from "clsx";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/mergeStyles/mergeStyles.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Combines class names with Tailwind CSS conflict resolution
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* mergeStyles('px-2 py-1', 'px-4') // => 'py-1 px-4'
|
|
9
|
+
* mergeStyles('text-red-500', condition && 'text-blue-500')
|
|
10
|
+
*/
|
|
11
|
+
declare function mergeStyles(...inputs: ClassValue[]): string;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { mergeStyles };
|
|
14
|
+
//# sourceMappingURL=mergeStyles.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeStyles.d.cts","names":[],"sources":["../../../src/utils/mergeStyles/mergeStyles.ts"],"mappings":";;;;;AAUA;;;;;iBAAgB,WAAA,CAAA,GAAe,MAAA,EAAQ,UAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClassValue } from "clsx";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/mergeStyles/mergeStyles.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Combines class names with Tailwind CSS conflict resolution
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* mergeStyles('px-2 py-1', 'px-4') // => 'py-1 px-4'
|
|
9
|
+
* mergeStyles('text-red-500', condition && 'text-blue-500')
|
|
10
|
+
*/
|
|
11
|
+
declare function mergeStyles(...inputs: ClassValue[]): string;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { mergeStyles };
|
|
14
|
+
//# sourceMappingURL=mergeStyles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeStyles.d.mts","names":[],"sources":["../../../src/utils/mergeStyles/mergeStyles.ts"],"mappings":";;;;;AAUA;;;;;iBAAgB,WAAA,CAAA,GAAe,MAAA,EAAQ,UAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { clsx } from "clsx";
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/mergeStyles/mergeStyles.ts
|
|
5
|
+
/**
|
|
6
|
+
* Combines class names with Tailwind CSS conflict resolution
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* mergeStyles('px-2 py-1', 'px-4') // => 'py-1 px-4'
|
|
10
|
+
* mergeStyles('text-red-500', condition && 'text-blue-500')
|
|
11
|
+
*/
|
|
12
|
+
function mergeStyles(...inputs) {
|
|
13
|
+
return twMerge(clsx(inputs));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { mergeStyles };
|
|
18
|
+
//# sourceMappingURL=mergeStyles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeStyles.mjs","names":[],"sources":["../../../src/utils/mergeStyles/mergeStyles.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * Combines class names with Tailwind CSS conflict resolution\n *\n * @example\n * mergeStyles('px-2 py-1', 'px-4') // => 'py-1 px-4'\n * mergeStyles('text-red-500', condition && 'text-blue-500')\n */\nexport function mergeStyles(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;;;;;;;;;AAUA,SAAgB,YAAY,GAAG,QAAsB;AACnD,QAAO,QAAQ,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { PolymorphicProps, PolymorphicPropsWithoutRef } from "./polymorphic.mjs";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/polymorphic/polymorphic.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Polymorphic component props (includes ref)
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* type ButtonProps<E extends React.ElementType = 'button'> =
|
|
10
|
+
* PolymorphicProps<E, { variant?: 'primary' | 'secondary' }>;
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
type PolymorphicProps<E extends React.ElementType = 'div', Props = object> = Props & {
|
|
14
|
+
as?: E;
|
|
15
|
+
} & Omit<React.ComponentProps<E>, keyof Props | 'as'>;
|
|
16
|
+
/**
|
|
17
|
+
* Polymorphic component props without ref
|
|
18
|
+
*/
|
|
19
|
+
type PolymorphicPropsWithoutRef<E extends React.ElementType = 'div', Props = object> = Props & {
|
|
20
|
+
as?: E;
|
|
21
|
+
} & Omit<React.ComponentPropsWithoutRef<E>, keyof Props | 'as'>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { PolymorphicProps, PolymorphicPropsWithoutRef };
|
|
24
|
+
//# sourceMappingURL=polymorphic.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polymorphic.d.cts","names":[],"sources":["../../../src/utils/polymorphic/polymorphic.ts"],"mappings":";;;;;AAWA;;;;;;;KAAY,gBAAA,WACA,KAAA,CAAM,WAAA,4BAEd,KAAA;EAAU,EAAA,GAAK,CAAA;AAAA,IAAM,IAAA,CAAK,KAAA,CAAM,cAAA,CAAe,CAAA,SAAU,KAAA;;;;KAKjD,0BAAA,WACA,KAAA,CAAM,WAAA,4BAEd,KAAA;EAAU,EAAA,GAAK,CAAA;AAAA,IAAM,IAAA,CACrB,KAAA,CAAM,wBAAA,CAAyB,CAAA,SACzB,KAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/polymorphic/polymorphic.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Polymorphic component props (includes ref)
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* type ButtonProps<E extends React.ElementType = 'button'> =
|
|
10
|
+
* PolymorphicProps<E, { variant?: 'primary' | 'secondary' }>;
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
type PolymorphicProps<E extends React.ElementType = 'div', Props = object> = Props & {
|
|
14
|
+
as?: E;
|
|
15
|
+
} & Omit<React.ComponentProps<E>, keyof Props | 'as'>;
|
|
16
|
+
/**
|
|
17
|
+
* Polymorphic component props without ref
|
|
18
|
+
*/
|
|
19
|
+
type PolymorphicPropsWithoutRef<E extends React.ElementType = 'div', Props = object> = Props & {
|
|
20
|
+
as?: E;
|
|
21
|
+
} & Omit<React.ComponentPropsWithoutRef<E>, keyof Props | 'as'>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { PolymorphicProps, PolymorphicPropsWithoutRef };
|
|
24
|
+
//# sourceMappingURL=polymorphic.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polymorphic.d.mts","names":[],"sources":["../../../src/utils/polymorphic/polymorphic.ts"],"mappings":";;;;;AAWA;;;;;;;KAAY,gBAAA,WACA,KAAA,CAAM,WAAA,4BAEd,KAAA;EAAU,EAAA,GAAK,CAAA;AAAA,IAAM,IAAA,CAAK,KAAA,CAAM,cAAA,CAAe,CAAA,SAAU,KAAA;;;;KAKjD,0BAAA,WACA,KAAA,CAAM,WAAA,4BAEd,KAAA;EAAU,EAAA,GAAK,CAAA;AAAA,IAAM,IAAA,CACrB,KAAA,CAAM,wBAAA,CAAyB,CAAA,SACzB,KAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/utils/splitter/splitter.ts
|
|
3
|
+
function splitVariantProps(props, variantKeys) {
|
|
4
|
+
const picked = {};
|
|
5
|
+
const omitted = {};
|
|
6
|
+
for (const key in props) if (variantKeys.includes(key)) picked[key] = props[key];
|
|
7
|
+
else omitted[key] = props[key];
|
|
8
|
+
return [picked, omitted];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.splitVariantProps = splitVariantProps;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/utils/splitter/splitter.d.ts
|
|
2
|
+
declare function splitVariantProps<T extends Record<string, unknown>, K extends readonly string[]>(props: T, variantKeys: K): [Pick<T, K[number]>, Omit<T, K[number]>];
|
|
3
|
+
//#endregion
|
|
4
|
+
export { splitVariantProps };
|
|
5
|
+
//# sourceMappingURL=splitter.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitter.d.cts","names":[],"sources":["../../../src/utils/splitter/splitter.ts"],"mappings":";iBACgB,iBAAA,WACJ,MAAA,+CAAA,CAEV,KAAA,EAAO,CAAA,EAAG,WAAA,EAAa,CAAA,IASM,IAAA,CAAK,CAAA,EAAG,CAAA,WAAY,IAAA,CAAK,CAAA,EAAG,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/utils/splitter/splitter.d.ts
|
|
2
|
+
declare function splitVariantProps<T extends Record<string, unknown>, K extends readonly string[]>(props: T, variantKeys: K): [Pick<T, K[number]>, Omit<T, K[number]>];
|
|
3
|
+
//#endregion
|
|
4
|
+
export { splitVariantProps };
|
|
5
|
+
//# sourceMappingURL=splitter.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitter.d.mts","names":[],"sources":["../../../src/utils/splitter/splitter.ts"],"mappings":";iBACgB,iBAAA,WACJ,MAAA,+CAAA,CAEV,KAAA,EAAO,CAAA,EAAG,WAAA,EAAa,CAAA,IASM,IAAA,CAAK,CAAA,EAAG,CAAA,WAAY,IAAA,CAAK,CAAA,EAAG,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/utils/splitter/splitter.ts
|
|
2
|
+
function splitVariantProps(props, variantKeys) {
|
|
3
|
+
const picked = {};
|
|
4
|
+
const omitted = {};
|
|
5
|
+
for (const key in props) if (variantKeys.includes(key)) picked[key] = props[key];
|
|
6
|
+
else omitted[key] = props[key];
|
|
7
|
+
return [picked, omitted];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { splitVariantProps };
|
|
12
|
+
//# sourceMappingURL=splitter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splitter.mjs","names":[],"sources":["../../../src/utils/splitter/splitter.ts"],"sourcesContent":["/* eslint-disable */\nexport function splitVariantProps<\n T extends Record<string, unknown>,\n K extends readonly string[],\n>(props: T, variantKeys: K) {\n const picked = {} as any;\n const omitted = {} as any;\n\n for (const key in props) {\n if (variantKeys.includes(key)) picked[key] = props[key];\n else omitted[key] = props[key];\n }\n\n return [picked, omitted] as [Pick<T, K[number]>, Omit<T, K[number]>];\n}\n"],"mappings":";AACA,SAAgB,kBAGd,OAAU,aAAgB;CAC1B,MAAM,SAAS,EAAE;CACjB,MAAM,UAAU,EAAE;AAElB,MAAK,MAAM,OAAO,MAChB,KAAI,YAAY,SAAS,IAAI,CAAE,QAAO,OAAO,MAAM;KAC9C,SAAQ,OAAO,MAAM;AAG5B,QAAO,CAAC,QAAQ,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@causw/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Core components and utilities for CAUSW Design System - CAU Software Community Service",
|
|
5
|
-
"main": "dist/index.
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.
|
|
7
|
+
"types": "dist/index.d.cts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.mts",
|
|
12
|
+
"default": "./dist/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/index.d.cts",
|
|
16
|
+
"default": "./dist/index.cjs"
|
|
17
|
+
}
|
|
13
18
|
},
|
|
14
19
|
"./styles": {
|
|
15
20
|
"import": "./src/styles/global.css",
|
|
@@ -21,11 +26,18 @@
|
|
|
21
26
|
"src/styles"
|
|
22
27
|
],
|
|
23
28
|
"dependencies": {
|
|
29
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
30
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
31
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
24
32
|
"@radix-ui/react-slot": "^1.2.4",
|
|
33
|
+
"@radix-ui/react-toast": "^1.2.15",
|
|
34
|
+
"class-variance-authority": "^0.7.1",
|
|
25
35
|
"clsx": "^2.1.1",
|
|
36
|
+
"date-fns": "^4.1.0",
|
|
26
37
|
"tailwind-merge": "^3.4.0",
|
|
27
|
-
"
|
|
28
|
-
"@causw/
|
|
38
|
+
"tailwind-variants": "^3.2.2",
|
|
39
|
+
"@causw/icons": "0.0.9",
|
|
40
|
+
"@causw/tokens": "0.0.12"
|
|
29
41
|
},
|
|
30
42
|
"peerDependencies": {
|
|
31
43
|
"react": ">=18",
|
|
@@ -42,8 +54,8 @@
|
|
|
42
54
|
},
|
|
43
55
|
"sideEffects": false,
|
|
44
56
|
"scripts": {
|
|
45
|
-
"build": "
|
|
46
|
-
"dev": "
|
|
57
|
+
"build": "tsdown",
|
|
58
|
+
"dev": "tsdown --watch",
|
|
47
59
|
"lint": "eslint src"
|
|
48
60
|
}
|
|
49
61
|
}
|
package/src/styles/global.css
CHANGED
|
@@ -3,123 +3,206 @@
|
|
|
3
3
|
@config '@causw/tokens/config';
|
|
4
4
|
|
|
5
5
|
* {
|
|
6
|
-
|
|
6
|
+
letter-spacing: -0.02rem;
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
-moz-osx-font-smoothing: grayscale;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
@layer utilities {
|
|
12
|
+
/* Title variants */
|
|
13
|
+
.typo-title-48-bold {
|
|
14
|
+
@apply font-sans text-6xl leading-normal font-bold;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.typo-title-32-bold {
|
|
18
|
+
@apply font-sans text-5xl leading-normal font-bold;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.typo-title-30-bold {
|
|
22
|
+
@apply font-sans text-4xl leading-normal font-bold;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.typo-title-24-bold {
|
|
26
|
+
@apply font-sans text-3xl leading-normal font-bold;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.typo-title-22-bold {
|
|
30
|
+
@apply font-sans text-2xl leading-normal font-bold;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Subtitle variants */
|
|
34
|
+
.typo-subtitle-20-bold {
|
|
35
|
+
@apply font-sans text-xl leading-normal font-bold;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.typo-subtitle-18-bold {
|
|
39
|
+
@apply font-sans text-lg leading-normal font-bold;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.typo-subtitle-16-bold {
|
|
43
|
+
@apply font-sans text-base leading-normal font-bold;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Body variants */
|
|
47
|
+
.typo-body-18-medium {
|
|
48
|
+
@apply font-sans text-lg leading-normal font-medium;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.typo-body-16-medium {
|
|
52
|
+
@apply font-sans text-base leading-normal font-medium;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.typo-body-16-regular {
|
|
56
|
+
@apply font-regular font-sans text-base leading-normal;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.typo-body-15-semibold {
|
|
60
|
+
@apply font-sans text-sm leading-normal font-semibold;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.typo-body-15-medium {
|
|
64
|
+
@apply font-sans text-sm leading-normal font-medium;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.typo-body-14-semibold {
|
|
68
|
+
@apply font-sans text-xs leading-normal font-semibold;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.typo-body-14-medium {
|
|
72
|
+
@apply font-sans text-xs leading-normal font-medium;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.typo-body-14-regular {
|
|
76
|
+
@apply font-regular font-sans text-xs leading-normal;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.typo-caption-12-semibold {
|
|
80
|
+
@apply text-2xs font-sans leading-normal font-semibold;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.typo-caption-12-medium {
|
|
84
|
+
@apply text-2xs font-sans leading-normal font-medium;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.typo-caption-12-regular {
|
|
88
|
+
@apply text-2xs font-regular font-sans leading-normal;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
10
91
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@apply font-sans text-2xs leading-normal font-semibold;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.typo-caption-md {
|
|
21
|
-
@apply font-sans text-xs leading-normal font-medium;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.typo-caption-md-point {
|
|
25
|
-
@apply font-sans text-xs leading-normal font-semibold;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Body2 variants */
|
|
29
|
-
.typo-body2-sm {
|
|
30
|
-
@apply font-sans text-xs leading-normal font-regular;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.typo-body2-sm-point {
|
|
34
|
-
@apply font-sans text-xs leading-normal font-semibold;
|
|
35
|
-
}
|
|
92
|
+
@theme {
|
|
93
|
+
--z-index-sticky: 250;
|
|
94
|
+
--z-index-dropdown: 500;
|
|
95
|
+
--z-index-bottomsheet: 600;
|
|
96
|
+
--z-index-modal: 1000;
|
|
97
|
+
--z-index-toast: 1500;
|
|
36
98
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
99
|
+
--animate-toast-hide: toast-hide 100ms ease-in forwards;
|
|
100
|
+
--animate-toast-slide-in: toast-slide-in 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
101
|
+
--animate-toast-swipe-out: toast-swipe-out 100ms ease-out forwards;
|
|
40
102
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
103
|
+
--animate-fade-in: fade-in 200ms ease-out;
|
|
104
|
+
--animate-fade-out: fade-out 200ms ease-in;
|
|
105
|
+
--animate-zoom-in: zoom-in 200ms ease-out;
|
|
106
|
+
--animate-zoom-out: zoom-out 200ms ease-in;
|
|
44
107
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
108
|
+
@keyframes fade-in {
|
|
109
|
+
from {
|
|
110
|
+
opacity: 0;
|
|
48
111
|
}
|
|
49
112
|
|
|
50
|
-
|
|
51
|
-
|
|
113
|
+
to {
|
|
114
|
+
opacity: 1;
|
|
52
115
|
}
|
|
116
|
+
}
|
|
53
117
|
|
|
54
|
-
|
|
55
|
-
|
|
118
|
+
@keyframes fade-out {
|
|
119
|
+
from {
|
|
120
|
+
opacity: 1;
|
|
56
121
|
}
|
|
57
122
|
|
|
58
|
-
|
|
59
|
-
|
|
123
|
+
to {
|
|
124
|
+
opacity: 0;
|
|
60
125
|
}
|
|
126
|
+
}
|
|
61
127
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
128
|
+
@keyframes zoom-in {
|
|
129
|
+
from {
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transform: scale(0.95);
|
|
65
132
|
}
|
|
66
133
|
|
|
67
|
-
|
|
68
|
-
|
|
134
|
+
to {
|
|
135
|
+
opacity: 1;
|
|
136
|
+
transform: scale(1);
|
|
69
137
|
}
|
|
138
|
+
}
|
|
70
139
|
|
|
71
|
-
|
|
72
|
-
|
|
140
|
+
@keyframes zoom-out {
|
|
141
|
+
from {
|
|
142
|
+
opacity: 1;
|
|
143
|
+
transform: scale(1);
|
|
73
144
|
}
|
|
74
145
|
|
|
75
|
-
|
|
76
|
-
|
|
146
|
+
to {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
transform: scale(0.95);
|
|
77
149
|
}
|
|
150
|
+
}
|
|
78
151
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
152
|
+
@keyframes toast-hide {
|
|
153
|
+
from {
|
|
154
|
+
opacity: 1;
|
|
82
155
|
}
|
|
83
156
|
|
|
84
|
-
|
|
85
|
-
|
|
157
|
+
to {
|
|
158
|
+
opacity: 0;
|
|
86
159
|
}
|
|
160
|
+
}
|
|
87
161
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
162
|
+
@keyframes toast-slide-in {
|
|
163
|
+
from {
|
|
164
|
+
transform: translateY(100%);
|
|
91
165
|
}
|
|
92
166
|
|
|
93
|
-
|
|
94
|
-
|
|
167
|
+
to {
|
|
168
|
+
transform: translateY(0);
|
|
95
169
|
}
|
|
170
|
+
}
|
|
96
171
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
172
|
+
@keyframes toast-swipe-out {
|
|
173
|
+
from {
|
|
174
|
+
transform: translateY(var(--radix-toast-swipe-end-y));
|
|
100
175
|
}
|
|
101
176
|
|
|
102
|
-
|
|
103
|
-
|
|
177
|
+
to {
|
|
178
|
+
transform: translateY(100%);
|
|
104
179
|
}
|
|
180
|
+
}
|
|
105
181
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
182
|
+
--animate-overlay-show: fade-in 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
183
|
+
--animate-overlay-hide: fade-out 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
184
|
+
--animate-content-show: content-show 300ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
185
|
+
--animate-content-hide: content-hide 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
109
186
|
|
|
110
|
-
|
|
111
|
-
|
|
187
|
+
@keyframes content-show {
|
|
188
|
+
from {
|
|
189
|
+
opacity: 0;
|
|
190
|
+
transform: translateY(100%);
|
|
112
191
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
192
|
+
to {
|
|
193
|
+
opacity: 1;
|
|
194
|
+
transform: translate(0);
|
|
116
195
|
}
|
|
196
|
+
}
|
|
117
197
|
|
|
118
|
-
|
|
119
|
-
|
|
198
|
+
@keyframes content-hide {
|
|
199
|
+
from {
|
|
200
|
+
opacity: 1;
|
|
201
|
+
transform: translateY(0);
|
|
120
202
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
203
|
+
to {
|
|
204
|
+
opacity: 0;
|
|
205
|
+
transform: translateY(100%);
|
|
124
206
|
}
|
|
125
|
-
}
|
|
207
|
+
}
|
|
208
|
+
}
|