@cocso-ui/react 0.2.21 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/cn.d.ts +12 -0
- package/dist/cjs/cn.js +17 -0
- package/dist/cjs/components/accordion/accordion.d.ts +25 -0
- package/dist/cjs/components/accordion/accordion.js +54 -0
- package/dist/cjs/components/accordion/accordion.module.css.js +9 -0
- package/dist/cjs/components/alert/alert.d.ts +15 -0
- package/dist/cjs/components/alert/alert.js +44 -0
- package/dist/cjs/components/alert/alert.module.css.js +9 -0
- package/dist/cjs/components/avatar/avatar.d.ts +18 -0
- package/dist/cjs/components/avatar/avatar.js +52 -0
- package/dist/cjs/components/avatar/avatar.module.css.js +9 -0
- package/dist/cjs/components/badge/badge.d.ts +16 -0
- package/dist/cjs/components/badge/badge.js +60 -0
- package/dist/cjs/components/badge/badge.module.css.js +9 -0
- package/dist/cjs/components/breadcrumb/breadcrumb.d.ts +14 -0
- package/dist/cjs/components/breadcrumb/breadcrumb.js +50 -0
- package/dist/cjs/components/breadcrumb/breadcrumb.module.css.js +9 -0
- package/dist/cjs/components/button/button.d.ts +27 -0
- package/dist/cjs/components/button/button.js +83 -0
- package/dist/cjs/components/button/button.module.css.js +9 -0
- package/dist/cjs/components/card/card.d.ts +13 -0
- package/dist/cjs/components/card/card.js +30 -0
- package/dist/cjs/components/card/card.module.css.js +9 -0
- package/dist/cjs/components/checkbox/checkbox.d.ts +20 -0
- package/dist/cjs/components/checkbox/checkbox.js +116 -0
- package/dist/cjs/components/checkbox/checkbox.module.css.js +9 -0
- package/dist/cjs/components/day-picker/day-picker.d.ts +18 -0
- package/dist/cjs/components/day-picker/day-picker.js +117 -0
- package/dist/cjs/components/day-picker/day-picker.module.css.js +9 -0
- package/dist/cjs/components/dialog/dialog.d.ts +29 -0
- package/dist/cjs/components/dialog/dialog.js +105 -0
- package/dist/cjs/components/dialog/dialog.module.css.js +9 -0
- package/dist/cjs/components/dropdown/dropdown.d.ts +16 -0
- package/dist/cjs/components/dropdown/dropdown.js +56 -0
- package/dist/cjs/components/dropdown/dropdown.module.css.js +9 -0
- package/dist/cjs/components/field/field.d.ts +26 -0
- package/dist/cjs/components/field/field.js +49 -0
- package/dist/cjs/components/field/field.module.css.js +9 -0
- package/dist/cjs/components/input/input.d.ts +17 -0
- package/dist/cjs/components/input/input.js +70 -0
- package/dist/cjs/components/input/input.module.css.js +9 -0
- package/dist/cjs/components/input-trigger/input-trigger.d.ts +25 -0
- package/dist/cjs/components/input-trigger/input-trigger.js +54 -0
- package/dist/cjs/components/input-trigger/input-trigger.module.css.js +9 -0
- package/dist/cjs/components/link/link.d.ts +28 -0
- package/dist/cjs/components/link/link.js +64 -0
- package/dist/cjs/components/link/link.module.css.js +9 -0
- package/dist/cjs/components/month-picker/month-picker.d.ts +18 -0
- package/dist/cjs/components/month-picker/month-picker.js +108 -0
- package/dist/cjs/components/month-picker/month-picker.module.css.js +9 -0
- package/dist/cjs/components/one-time-password-field/one-time-password-field.d.ts +13 -0
- package/dist/cjs/components/one-time-password-field/one-time-password-field.js +44 -0
- package/dist/cjs/components/one-time-password-field/one-time-password-field.module.css.js +9 -0
- package/dist/cjs/components/pagination/pagination.d.ts +23 -0
- package/dist/cjs/components/pagination/pagination.js +87 -0
- package/dist/cjs/components/pagination/pagination.module.css.js +9 -0
- package/dist/cjs/components/popover/popover.d.ts +14 -0
- package/dist/cjs/components/popover/popover.js +49 -0
- package/dist/cjs/components/popover/popover.module.css.js +9 -0
- package/dist/cjs/components/progress/progress.d.ts +17 -0
- package/dist/cjs/components/progress/progress.js +43 -0
- package/dist/cjs/components/progress/progress.module.css.js +9 -0
- package/dist/cjs/components/radio-group/radio-group.d.ts +23 -0
- package/dist/cjs/components/radio-group/radio-group.js +53 -0
- package/dist/cjs/components/radio-group/radio-group.module.css.js +9 -0
- package/dist/cjs/components/select/select.d.ts +17 -0
- package/dist/cjs/components/select/select.js +86 -0
- package/dist/cjs/components/select/select.module.css.js +9 -0
- package/dist/cjs/components/skeleton/skeleton.d.ts +15 -0
- package/dist/cjs/components/skeleton/skeleton.js +30 -0
- package/dist/cjs/components/skeleton/skeleton.module.css.js +9 -0
- package/dist/cjs/components/spinner/spinner.d.ts +17 -0
- package/dist/cjs/components/spinner/spinner.js +70 -0
- package/dist/cjs/components/spinner/spinner.module.css.js +9 -0
- package/dist/cjs/components/stock-quantity-status/stock-quantity-status.d.ts +12 -0
- package/dist/cjs/components/stock-quantity-status/stock-quantity-status.js +119 -0
- package/dist/cjs/components/stock-quantity-status/stock-quantity-status.module.css.js +9 -0
- package/dist/cjs/components/switch/switch.d.ts +19 -0
- package/dist/cjs/components/switch/switch.js +74 -0
- package/dist/cjs/components/switch/switch.module.css.js +9 -0
- package/dist/cjs/components/tab/tab.d.ts +21 -0
- package/dist/cjs/components/tab/tab.js +33 -0
- package/dist/cjs/components/tooltip/tooltip.d.ts +17 -0
- package/dist/cjs/components/tooltip/tooltip.js +50 -0
- package/dist/cjs/components/tooltip/tooltip.module.css.js +9 -0
- package/dist/cjs/components/typography/typography.d.ts +30 -0
- package/dist/cjs/components/typography/typography.js +81 -0
- package/dist/cjs/components/typography/typography.module.css.js +9 -0
- package/dist/cjs/ecosystem/codegen/generated/alert.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/alert.js +12 -0
- package/dist/cjs/ecosystem/codegen/generated/avatar.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/avatar.js +13 -0
- package/dist/cjs/ecosystem/codegen/generated/badge.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/badge.js +14 -0
- package/dist/cjs/ecosystem/codegen/generated/breadcrumb.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/breadcrumb.js +12 -0
- package/dist/cjs/ecosystem/codegen/generated/button.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/button.js +14 -0
- package/dist/cjs/ecosystem/codegen/generated/card.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/card.js +13 -0
- package/dist/cjs/ecosystem/codegen/generated/checkbox.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/checkbox.js +13 -0
- package/dist/cjs/ecosystem/codegen/generated/input.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/input.js +12 -0
- package/dist/cjs/ecosystem/codegen/generated/link.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/link.js +12 -0
- package/dist/cjs/ecosystem/codegen/generated/progress.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/progress.js +13 -0
- package/dist/cjs/ecosystem/codegen/generated/radio.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/radio.js +13 -0
- package/dist/cjs/ecosystem/codegen/generated/select.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/select.js +12 -0
- package/dist/cjs/ecosystem/codegen/generated/skeleton.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/skeleton.js +13 -0
- package/dist/cjs/ecosystem/codegen/generated/spinner-geometry.js +33 -0
- package/dist/cjs/ecosystem/codegen/generated/spinner.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/spinner.js +13 -0
- package/dist/cjs/ecosystem/codegen/generated/stock-quantity-status.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/stock-quantity-status.js +12 -0
- package/dist/cjs/ecosystem/codegen/generated/switch.css.js +6 -0
- package/dist/cjs/ecosystem/codegen/generated/switch.js +14 -0
- package/dist/cjs/index.d.ts +32 -19
- package/dist/cjs/index.js +67 -43
- package/dist/cjs/primitives/use-render.d.ts +11 -0
- package/dist/cjs/token/color.d.ts +12 -0
- package/dist/cjs/token/color.js +93 -81
- package/dist/cjs/token/radius.d.ts +12 -0
- package/dist/cjs/token/radius.js +14 -0
- package/dist/cjs/token/spacing.d.ts +24 -23
- package/dist/cjs/token/spacing.js +24 -23
- package/dist/cjs/token/typography.d.ts +17 -0
- package/dist/cjs/token/typography.js +17 -6
- package/dist/esm/cn.d.mts +12 -0
- package/dist/esm/cn.mjs +15 -0
- package/dist/esm/components/accordion/accordion.d.mts +25 -0
- package/dist/esm/components/accordion/accordion.mjs +52 -0
- package/dist/esm/components/accordion/accordion.module.css.mjs +3 -0
- package/dist/esm/components/alert/alert.d.mts +15 -0
- package/dist/esm/components/alert/alert.mjs +41 -0
- package/dist/esm/components/alert/alert.module.css.mjs +3 -0
- package/dist/esm/components/avatar/avatar.d.mts +18 -0
- package/dist/esm/components/avatar/avatar.mjs +49 -0
- package/dist/esm/components/avatar/avatar.module.css.mjs +3 -0
- package/dist/esm/components/badge/badge.d.mts +16 -0
- package/dist/esm/components/badge/badge.mjs +57 -0
- package/dist/esm/components/badge/badge.module.css.mjs +3 -0
- package/dist/esm/components/breadcrumb/breadcrumb.d.mts +14 -0
- package/dist/esm/components/breadcrumb/breadcrumb.mjs +47 -0
- package/dist/esm/components/breadcrumb/breadcrumb.module.css.mjs +3 -0
- package/dist/esm/components/button/button.d.mts +27 -0
- package/dist/esm/components/button/button.mjs +80 -0
- package/dist/esm/components/button/button.module.css.mjs +3 -0
- package/dist/esm/components/card/card.d.mts +13 -0
- package/dist/esm/components/card/card.mjs +27 -0
- package/dist/esm/components/card/card.module.css.mjs +3 -0
- package/dist/esm/components/checkbox/checkbox.d.mts +20 -0
- package/dist/esm/components/checkbox/checkbox.mjs +113 -0
- package/dist/esm/components/checkbox/checkbox.module.css.mjs +3 -0
- package/dist/esm/components/day-picker/day-picker.d.mts +18 -0
- package/dist/esm/components/day-picker/day-picker.mjs +115 -0
- package/dist/esm/components/day-picker/day-picker.module.css.mjs +3 -0
- package/dist/esm/components/dialog/dialog.d.mts +29 -0
- package/dist/esm/components/dialog/dialog.mjs +103 -0
- package/dist/esm/components/dialog/dialog.module.css.mjs +3 -0
- package/dist/esm/components/dropdown/dropdown.d.mts +16 -0
- package/dist/esm/components/dropdown/dropdown.mjs +54 -0
- package/dist/esm/components/dropdown/dropdown.module.css.mjs +3 -0
- package/dist/esm/components/field/field.d.mts +26 -0
- package/dist/esm/components/field/field.mjs +46 -0
- package/dist/esm/components/field/field.module.css.mjs +3 -0
- package/dist/esm/components/input/input.d.mts +17 -0
- package/dist/esm/components/input/input.mjs +67 -0
- package/dist/esm/components/input/input.module.css.mjs +3 -0
- package/dist/esm/components/input-trigger/input-trigger.d.mts +25 -0
- package/dist/esm/components/input-trigger/input-trigger.mjs +51 -0
- package/dist/esm/components/input-trigger/input-trigger.module.css.mjs +3 -0
- package/dist/esm/components/link/link.d.mts +28 -0
- package/dist/esm/components/link/link.mjs +61 -0
- package/dist/esm/components/link/link.module.css.mjs +3 -0
- package/dist/esm/components/month-picker/month-picker.d.mts +18 -0
- package/dist/esm/components/month-picker/month-picker.mjs +106 -0
- package/dist/esm/components/month-picker/month-picker.module.css.mjs +3 -0
- package/dist/esm/components/one-time-password-field/one-time-password-field.d.mts +13 -0
- package/dist/esm/components/one-time-password-field/one-time-password-field.mjs +42 -0
- package/dist/esm/components/one-time-password-field/one-time-password-field.module.css.mjs +3 -0
- package/dist/esm/components/pagination/pagination.d.mts +23 -0
- package/dist/esm/{pagination/Pagination.mjs → components/pagination/pagination.mjs} +46 -15
- package/dist/esm/components/pagination/pagination.module.css.mjs +3 -0
- package/dist/esm/components/popover/popover.d.mts +14 -0
- package/dist/esm/components/popover/popover.mjs +47 -0
- package/dist/esm/components/popover/popover.module.css.mjs +3 -0
- package/dist/esm/components/progress/progress.d.mts +17 -0
- package/dist/esm/components/progress/progress.mjs +40 -0
- package/dist/esm/components/progress/progress.module.css.mjs +3 -0
- package/dist/esm/components/radio-group/radio-group.d.mts +23 -0
- package/dist/esm/components/radio-group/radio-group.mjs +50 -0
- package/dist/esm/components/radio-group/radio-group.module.css.mjs +3 -0
- package/dist/esm/components/select/select.d.mts +17 -0
- package/dist/esm/components/select/select.mjs +83 -0
- package/dist/esm/components/select/select.module.css.mjs +3 -0
- package/dist/esm/components/skeleton/skeleton.d.mts +15 -0
- package/dist/esm/components/skeleton/skeleton.mjs +27 -0
- package/dist/esm/components/skeleton/skeleton.module.css.mjs +3 -0
- package/dist/esm/components/spinner/spinner.d.mts +17 -0
- package/dist/esm/components/spinner/spinner.mjs +67 -0
- package/dist/esm/components/spinner/spinner.module.css.mjs +3 -0
- package/dist/esm/components/stock-quantity-status/stock-quantity-status.d.mts +12 -0
- package/dist/esm/components/stock-quantity-status/stock-quantity-status.mjs +116 -0
- package/dist/esm/components/stock-quantity-status/stock-quantity-status.module.css.mjs +3 -0
- package/dist/esm/components/switch/switch.d.mts +19 -0
- package/dist/esm/components/switch/switch.mjs +71 -0
- package/dist/esm/components/switch/switch.module.css.mjs +3 -0
- package/dist/esm/components/tab/tab.d.mts +21 -0
- package/dist/esm/components/tab/tab.mjs +31 -0
- package/dist/esm/components/tooltip/tooltip.d.mts +17 -0
- package/dist/esm/components/tooltip/tooltip.mjs +48 -0
- package/dist/esm/components/tooltip/tooltip.module.css.mjs +3 -0
- package/dist/esm/components/typography/typography.d.mts +30 -0
- package/dist/esm/components/typography/typography.mjs +79 -0
- package/dist/esm/components/typography/typography.module.css.mjs +3 -0
- package/dist/esm/ecosystem/codegen/generated/alert.mjs +10 -0
- package/dist/esm/ecosystem/codegen/generated/avatar.mjs +11 -0
- package/dist/esm/ecosystem/codegen/generated/badge.mjs +12 -0
- package/dist/esm/ecosystem/codegen/generated/breadcrumb.mjs +10 -0
- package/dist/esm/ecosystem/codegen/generated/button.mjs +12 -0
- package/dist/esm/ecosystem/codegen/generated/card.mjs +11 -0
- package/dist/esm/ecosystem/codegen/generated/checkbox.mjs +11 -0
- package/dist/esm/ecosystem/codegen/generated/input.mjs +10 -0
- package/dist/esm/ecosystem/codegen/generated/link.mjs +10 -0
- package/dist/esm/ecosystem/codegen/generated/progress.mjs +11 -0
- package/dist/esm/ecosystem/codegen/generated/radio.mjs +11 -0
- package/dist/esm/ecosystem/codegen/generated/select.mjs +10 -0
- package/dist/esm/ecosystem/codegen/generated/skeleton.mjs +11 -0
- package/dist/esm/ecosystem/codegen/generated/spinner-geometry.mjs +30 -0
- package/dist/esm/ecosystem/codegen/generated/spinner.mjs +11 -0
- package/dist/esm/ecosystem/codegen/generated/stock-quantity-status.mjs +10 -0
- package/dist/esm/ecosystem/codegen/generated/switch.mjs +12 -0
- package/dist/esm/index.css +7 -1
- package/dist/esm/index.d.mts +32 -19
- package/dist/esm/index.mjs +32 -20
- package/dist/esm/primitives/use-render.d.mts +11 -0
- package/dist/esm/token/color.d.mts +12 -0
- package/dist/esm/token/color.mjs +93 -81
- package/dist/esm/token/radius.d.mts +12 -0
- package/dist/esm/token/radius.mjs +12 -0
- package/dist/esm/token/spacing.d.mts +24 -23
- package/dist/esm/token/spacing.mjs +24 -23
- package/dist/esm/token/typography.d.mts +17 -0
- package/dist/esm/token/typography.mjs +17 -6
- package/package.json +29 -26
- package/dist/cjs/accordion/Accordion.d.ts +0 -15
- package/dist/cjs/accordion/Accordion.js +0 -71
- package/dist/cjs/accordion/Accordion.module.css.js +0 -9
- package/dist/cjs/badge/Badge.d.ts +0 -13
- package/dist/cjs/badge/Badge.js +0 -50
- package/dist/cjs/badge/Badge.module.css.js +0 -9
- package/dist/cjs/button/Button.d.ts +0 -23
- package/dist/cjs/button/Button.js +0 -117
- package/dist/cjs/button/Button.module.css.js +0 -9
- package/dist/cjs/checkbox/Checkbox.d.ts +0 -18
- package/dist/cjs/checkbox/Checkbox.js +0 -117
- package/dist/cjs/checkbox/Checkbox.module.css.js +0 -9
- package/dist/cjs/day-picker/DayPicker.d.ts +0 -14
- package/dist/cjs/day-picker/DayPicker.js +0 -98
- package/dist/cjs/day-picker/DayPicker.module.css.js +0 -9
- package/dist/cjs/dropdown/Dropdown.d.ts +0 -11
- package/dist/cjs/dropdown/Dropdown.js +0 -55
- package/dist/cjs/dropdown/Dropdown.module.css.js +0 -9
- package/dist/cjs/link/Link.d.ts +0 -16
- package/dist/cjs/link/Link.js +0 -35
- package/dist/cjs/link/Link.module.css.js +0 -9
- package/dist/cjs/modal/Modal.d.ts +0 -12
- package/dist/cjs/modal/Modal.js +0 -106
- package/dist/cjs/modal/Modal.module.css.js +0 -9
- package/dist/cjs/month-picker/MonthPicker.d.ts +0 -14
- package/dist/cjs/month-picker/MonthPicker.js +0 -91
- package/dist/cjs/month-picker/MonthPicker.module.css.js +0 -9
- package/dist/cjs/one-time-password-field/OneTimePasswordField.d.ts +0 -8
- package/dist/cjs/one-time-password-field/OneTimePasswordField.js +0 -52
- package/dist/cjs/one-time-password-field/OneTimePasswordField.module.css.js +0 -9
- package/dist/cjs/pagination/Pagination.d.ts +0 -13
- package/dist/cjs/pagination/Pagination.js +0 -56
- package/dist/cjs/pagination/Pagination.module.css.js +0 -9
- package/dist/cjs/popover/Popover.d.ts +0 -10
- package/dist/cjs/popover/Popover.js +0 -44
- package/dist/cjs/popover/Popover.module.css.js +0 -9
- package/dist/cjs/radio-group/RadioGroup.d.ts +0 -9
- package/dist/cjs/radio-group/RadioGroup.js +0 -66
- package/dist/cjs/radio-group/RadioGroup.module.css.js +0 -9
- package/dist/cjs/select/Select.d.ts +0 -13
- package/dist/cjs/select/Select.js +0 -85
- package/dist/cjs/select/Select.module.css.js +0 -9
- package/dist/cjs/spinner/Spinner.d.ts +0 -14
- package/dist/cjs/spinner/Spinner.js +0 -40
- package/dist/cjs/spinner/Spinner.module.css.js +0 -9
- package/dist/cjs/stock-quantity-status/StockQuantityStatus.d.ts +0 -12
- package/dist/cjs/stock-quantity-status/StockQuantityStatus.js +0 -105
- package/dist/cjs/stock-quantity-status/StockQuantityStatus.module.css.js +0 -9
- package/dist/cjs/switch/Switch.d.ts +0 -16
- package/dist/cjs/switch/Switch.js +0 -89
- package/dist/cjs/switch/Switch.module.css.js +0 -9
- package/dist/cjs/tab/Tab.d.ts +0 -10
- package/dist/cjs/tab/Tab.js +0 -64
- package/dist/cjs/typography/Typography.d.ts +0 -33
- package/dist/cjs/typography/Typography.js +0 -90
- package/dist/cjs/typography/Typography.module.css.js +0 -9
- package/dist/esm/accordion/Accordion.d.mts +0 -15
- package/dist/esm/accordion/Accordion.mjs +0 -50
- package/dist/esm/accordion/Accordion.module.css.mjs +0 -3
- package/dist/esm/badge/Badge.d.mts +0 -13
- package/dist/esm/badge/Badge.mjs +0 -48
- package/dist/esm/badge/Badge.module.css.mjs +0 -3
- package/dist/esm/button/Button.d.mts +0 -23
- package/dist/esm/button/Button.mjs +0 -115
- package/dist/esm/button/Button.module.css.mjs +0 -3
- package/dist/esm/checkbox/Checkbox.d.mts +0 -18
- package/dist/esm/checkbox/Checkbox.mjs +0 -96
- package/dist/esm/checkbox/Checkbox.module.css.mjs +0 -3
- package/dist/esm/day-picker/DayPicker.d.mts +0 -14
- package/dist/esm/day-picker/DayPicker.mjs +0 -96
- package/dist/esm/day-picker/DayPicker.module.css.mjs +0 -3
- package/dist/esm/dropdown/Dropdown.d.mts +0 -11
- package/dist/esm/dropdown/Dropdown.mjs +0 -34
- package/dist/esm/dropdown/Dropdown.module.css.mjs +0 -3
- package/dist/esm/link/Link.d.mts +0 -16
- package/dist/esm/link/Link.mjs +0 -33
- package/dist/esm/link/Link.module.css.mjs +0 -3
- package/dist/esm/modal/Modal.d.mts +0 -12
- package/dist/esm/modal/Modal.mjs +0 -85
- package/dist/esm/modal/Modal.module.css.mjs +0 -3
- package/dist/esm/month-picker/MonthPicker.d.mts +0 -14
- package/dist/esm/month-picker/MonthPicker.mjs +0 -89
- package/dist/esm/month-picker/MonthPicker.module.css.mjs +0 -3
- package/dist/esm/one-time-password-field/OneTimePasswordField.d.mts +0 -8
- package/dist/esm/one-time-password-field/OneTimePasswordField.mjs +0 -31
- package/dist/esm/one-time-password-field/OneTimePasswordField.module.css.mjs +0 -3
- package/dist/esm/pagination/Pagination.d.mts +0 -13
- package/dist/esm/pagination/Pagination.module.css.mjs +0 -3
- package/dist/esm/popover/Popover.d.mts +0 -10
- package/dist/esm/popover/Popover.mjs +0 -23
- package/dist/esm/popover/Popover.module.css.mjs +0 -3
- package/dist/esm/radio-group/RadioGroup.d.mts +0 -9
- package/dist/esm/radio-group/RadioGroup.mjs +0 -45
- package/dist/esm/radio-group/RadioGroup.module.css.mjs +0 -3
- package/dist/esm/select/Select.d.mts +0 -13
- package/dist/esm/select/Select.mjs +0 -83
- package/dist/esm/select/Select.module.css.mjs +0 -3
- package/dist/esm/spinner/Spinner.d.mts +0 -14
- package/dist/esm/spinner/Spinner.mjs +0 -38
- package/dist/esm/spinner/Spinner.module.css.mjs +0 -3
- package/dist/esm/stock-quantity-status/StockQuantityStatus.d.mts +0 -12
- package/dist/esm/stock-quantity-status/StockQuantityStatus.mjs +0 -102
- package/dist/esm/stock-quantity-status/StockQuantityStatus.module.css.mjs +0 -3
- package/dist/esm/switch/Switch.d.mts +0 -16
- package/dist/esm/switch/Switch.mjs +0 -68
- package/dist/esm/switch/Switch.module.css.mjs +0 -3
- package/dist/esm/tab/Tab.d.mts +0 -10
- package/dist/esm/tab/Tab.mjs +0 -43
- package/dist/esm/typography/Typography.d.mts +0 -33
- package/dist/esm/typography/Typography.mjs +0 -88
- package/dist/esm/typography/Typography.module.css.mjs +0 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Tabs } from '@base-ui/react/tabs';
|
|
4
|
+
|
|
5
|
+
type TabProps = ComponentProps<typeof Tabs.Root>;
|
|
6
|
+
type TabListProps = ComponentProps<typeof Tabs.List>;
|
|
7
|
+
type TabTriggerProps = ComponentProps<typeof Tabs.Tab>;
|
|
8
|
+
type TabContentProps = ComponentProps<typeof Tabs.Panel>;
|
|
9
|
+
declare function TabRoot(props: TabProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function TabList(props: TabListProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function TabTrigger(props: TabTriggerProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function TabContent(props: TabContentProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare const Tab: typeof TabRoot & {
|
|
14
|
+
displayName: "Tab";
|
|
15
|
+
List: typeof TabList;
|
|
16
|
+
Trigger: typeof TabTrigger;
|
|
17
|
+
Content: typeof TabContent;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { Tab };
|
|
21
|
+
export type { TabContentProps, TabListProps, TabProps, TabTriggerProps };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Tabs } from '@base-ui/react/tabs';
|
|
3
|
+
|
|
4
|
+
function TabRoot(props) {
|
|
5
|
+
return /*#__PURE__*/jsx(Tabs.Root, {
|
|
6
|
+
...props
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function TabList(props) {
|
|
10
|
+
return /*#__PURE__*/jsx(Tabs.List, {
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function TabTrigger(props) {
|
|
15
|
+
return /*#__PURE__*/jsx(Tabs.Tab, {
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function TabContent(props) {
|
|
20
|
+
return /*#__PURE__*/jsx(Tabs.Panel, {
|
|
21
|
+
...props
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const Tab = Object.assign(TabRoot, {
|
|
25
|
+
displayName: "Tab",
|
|
26
|
+
List: TabList,
|
|
27
|
+
Trigger: TabTrigger,
|
|
28
|
+
Content: TabContent
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { Tab };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import * as _base_ui_react from '@base-ui/react';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
6
|
+
|
|
7
|
+
declare function TooltipArrow({ className, ...props }: ComponentProps<typeof Tooltip$1.Arrow>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, arrowPadding, ...props }: ComponentProps<typeof Tooltip$1.Popup> & Pick<ComponentProps<typeof Tooltip$1.Positioner>, "side" | "sideOffset" | "align" | "alignOffset" | "arrowPadding">): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare const Tooltip: (<Payload>(props: Tooltip$1.Root.Props<Payload>) => react_jsx_runtime.JSX.Element) & {
|
|
10
|
+
displayName: "Tooltip";
|
|
11
|
+
Trigger: Tooltip$1.Trigger;
|
|
12
|
+
Content: typeof TooltipContent;
|
|
13
|
+
Arrow: typeof TooltipArrow;
|
|
14
|
+
Provider: react.FC<_base_ui_react.TooltipProviderProps>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { Tooltip };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { cn } from '../../cn.mjs';
|
|
2
|
+
import styles from './tooltip.module.css.mjs';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
5
|
+
|
|
6
|
+
function TooltipArrow({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /*#__PURE__*/jsx(Tooltip$1.Arrow, {
|
|
11
|
+
className: cn(styles.arrow, className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function TooltipContent({
|
|
16
|
+
className,
|
|
17
|
+
side,
|
|
18
|
+
sideOffset,
|
|
19
|
+
align,
|
|
20
|
+
alignOffset,
|
|
21
|
+
arrowPadding,
|
|
22
|
+
...props
|
|
23
|
+
}) {
|
|
24
|
+
return /*#__PURE__*/jsx(Tooltip$1.Portal, {
|
|
25
|
+
children: /*#__PURE__*/jsx(Tooltip$1.Positioner, {
|
|
26
|
+
align: align,
|
|
27
|
+
alignOffset: alignOffset,
|
|
28
|
+
arrowPadding: arrowPadding,
|
|
29
|
+
className: styles.positioner,
|
|
30
|
+
side: side,
|
|
31
|
+
sideOffset: sideOffset,
|
|
32
|
+
children: /*#__PURE__*/jsx(Tooltip$1.Popup, {
|
|
33
|
+
className: cn(styles.content, className),
|
|
34
|
+
"data-cocso-component": "tooltip-content",
|
|
35
|
+
...props
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const Tooltip = Object.assign(Tooltip$1.Root, {
|
|
41
|
+
displayName: "Tooltip",
|
|
42
|
+
Trigger: Tooltip$1.Trigger,
|
|
43
|
+
Content: TooltipContent,
|
|
44
|
+
Arrow: TooltipArrow,
|
|
45
|
+
Provider: Tooltip$1.Provider
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export { Tooltip };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { Ref, ComponentProps } from 'react';
|
|
3
|
+
import { RenderProp } from '../../primitives/use-render.mjs';
|
|
4
|
+
import { FontWeight, LineHeight, ResponsiveFontSize } from '../../token/typography.mjs';
|
|
5
|
+
|
|
6
|
+
type BodySize = "large" | "medium" | "small" | "x-small";
|
|
7
|
+
type HeadingSize = "x-large" | "large" | "medium" | "small" | "x-small";
|
|
8
|
+
type TypographyPropsBase = {
|
|
9
|
+
ref?: Ref<HTMLElement>;
|
|
10
|
+
render?: RenderProp;
|
|
11
|
+
weight?: FontWeight;
|
|
12
|
+
lineHeight?: LineHeight;
|
|
13
|
+
} & Omit<ComponentProps<"p">, "ref">;
|
|
14
|
+
type CustomTypographyProps = TypographyPropsBase & {
|
|
15
|
+
type: "custom";
|
|
16
|
+
size?: ResponsiveFontSize | "current";
|
|
17
|
+
};
|
|
18
|
+
type BodyTypographyProps = TypographyPropsBase & {
|
|
19
|
+
type?: "body";
|
|
20
|
+
size?: BodySize;
|
|
21
|
+
};
|
|
22
|
+
type HeadingTypographyProps = TypographyPropsBase & {
|
|
23
|
+
type: "heading";
|
|
24
|
+
size?: HeadingSize;
|
|
25
|
+
};
|
|
26
|
+
type TypographyProps = CustomTypographyProps | BodyTypographyProps | HeadingTypographyProps;
|
|
27
|
+
declare function Typography({ ref, render: renderProp, className, style: _style, color, type, weight, lineHeight, ...props }: TypographyProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
28
|
+
|
|
29
|
+
export { Typography };
|
|
30
|
+
export type { BodySize, HeadingSize, TypographyProps };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { match } from 'ts-pattern';
|
|
2
|
+
import { cn } from '../../cn.mjs';
|
|
3
|
+
import styles from './typography.module.css.mjs';
|
|
4
|
+
import { fontSize, lineHeight, fontWeight } from '../../token/typography.mjs';
|
|
5
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
6
|
+
import { mergeProps } from '@base-ui/react/merge-props';
|
|
7
|
+
|
|
8
|
+
function Typography({
|
|
9
|
+
ref,
|
|
10
|
+
render: renderProp,
|
|
11
|
+
className,
|
|
12
|
+
style: _style,
|
|
13
|
+
color,
|
|
14
|
+
type = "body",
|
|
15
|
+
weight = type === "heading" ? "bold" : "normal",
|
|
16
|
+
lineHeight: lineHeight$1 = "normal",
|
|
17
|
+
...props
|
|
18
|
+
}) {
|
|
19
|
+
const defaultTagName = getDefaultTagName(type);
|
|
20
|
+
const rawSize = props.size;
|
|
21
|
+
const isCurrent = rawSize === "current";
|
|
22
|
+
const fontSizeStyles = {};
|
|
23
|
+
if (!isCurrent) {
|
|
24
|
+
const fontSize$1 = getFontSize(type, props);
|
|
25
|
+
let base;
|
|
26
|
+
let tablet;
|
|
27
|
+
let desktop;
|
|
28
|
+
if (Array.isArray(fontSize$1)) {
|
|
29
|
+
[base, tablet, desktop] = fontSize$1;
|
|
30
|
+
} else if (typeof fontSize$1 === "object") {
|
|
31
|
+
({
|
|
32
|
+
base,
|
|
33
|
+
tablet,
|
|
34
|
+
desktop
|
|
35
|
+
} = fontSize$1);
|
|
36
|
+
} else {
|
|
37
|
+
base = fontSize$1;
|
|
38
|
+
}
|
|
39
|
+
fontSizeStyles["--cocso-typography-font-size"] = `${fontSize[base]}px`;
|
|
40
|
+
if (tablet !== undefined) {
|
|
41
|
+
fontSizeStyles["--cocso-tablet-typography-font-size"] = `${fontSize[tablet]}px`;
|
|
42
|
+
}
|
|
43
|
+
if (desktop !== undefined) {
|
|
44
|
+
fontSizeStyles["--cocso-desktop-typography-font-size"] = `${fontSize[desktop]}px`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
const style = {
|
|
48
|
+
..._style,
|
|
49
|
+
"--cocso-typography-font-color": color,
|
|
50
|
+
...fontSizeStyles,
|
|
51
|
+
"--cocso-typography-font-weight": fontWeight[weight],
|
|
52
|
+
"--cocso-typography-line-height": lineHeight[lineHeight$1]
|
|
53
|
+
};
|
|
54
|
+
const mergedClassName = cn(styles.typography, className);
|
|
55
|
+
return useRender({
|
|
56
|
+
render: renderProp,
|
|
57
|
+
ref,
|
|
58
|
+
props: mergeProps({
|
|
59
|
+
className: mergedClassName,
|
|
60
|
+
style
|
|
61
|
+
}, props),
|
|
62
|
+
defaultTagName
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
const getDefaultTagName = type => match(type).with("heading", () => "h2").otherwise(() => "p");
|
|
66
|
+
const getBodyFontSize = size => match(size).with("large", () => 18).with("medium", () => 16).with("small", () => 14).with("x-small", () => 12).exhaustive();
|
|
67
|
+
const getHeadingFontSize = size => match(size).with("x-large", () => ({
|
|
68
|
+
base: 28,
|
|
69
|
+
tablet: 36
|
|
70
|
+
})).with("large", () => ({
|
|
71
|
+
base: 24,
|
|
72
|
+
tablet: 32
|
|
73
|
+
})).with("medium", () => ({
|
|
74
|
+
base: 20,
|
|
75
|
+
tablet: 28
|
|
76
|
+
})).with("small", () => 16).with("x-small", () => 14).exhaustive();
|
|
77
|
+
const getFontSize = (type, props) => match(type).with("custom", () => props.size ?? 16).with("body", () => getBodyFontSize(props.size ?? "medium")).with("heading", () => getHeadingFontSize(props.size ?? "medium")).otherwise(() => 16);
|
|
78
|
+
|
|
79
|
+
export { Typography };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function avatar(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
size = "md",
|
|
6
|
+
shape = "circle"
|
|
7
|
+
} = props;
|
|
8
|
+
return ["cocso-avatar", size && `cocso-avatar--size-${size}`, shape && `cocso-avatar--shape-${shape}`].filter(Boolean).join(" ");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { avatar };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function badge(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
variant = "secondary",
|
|
6
|
+
size = "medium",
|
|
7
|
+
shape = "square"
|
|
8
|
+
} = props;
|
|
9
|
+
return ["cocso-badge", variant && `cocso-badge--variant-${variant}`, size && `cocso-badge--size-${size}`, shape && `cocso-badge--shape-${shape}`].filter(Boolean).join(" ");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { badge };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function button(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
variant = "primary",
|
|
6
|
+
size = "medium",
|
|
7
|
+
shape = "square"
|
|
8
|
+
} = props;
|
|
9
|
+
return ["cocso-button", variant && `cocso-button--variant-${variant}`, size && `cocso-button--size-${size}`, shape && `cocso-button--shape-${shape}`].filter(Boolean).join(" ");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { button };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function card(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
variant = "elevated",
|
|
6
|
+
padding = "md"
|
|
7
|
+
} = props;
|
|
8
|
+
return ["cocso-card", variant && `cocso-card--variant-${variant}`, padding && `cocso-card--padding-${padding}`].filter(Boolean).join(" ");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { card };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function checkbox(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
size = "medium",
|
|
6
|
+
status = "off"
|
|
7
|
+
} = props;
|
|
8
|
+
return ["cocso-checkbox", size && `cocso-checkbox--size-${size}`, status && `cocso-checkbox--status-${status}`].filter(Boolean).join(" ");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { checkbox };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function progress(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
variant = "primary",
|
|
6
|
+
size = "md"
|
|
7
|
+
} = props;
|
|
8
|
+
return ["cocso-progress", variant && `cocso-progress--variant-${variant}`, size && `cocso-progress--size-${size}`].filter(Boolean).join(" ");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { progress };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function radio(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
size = "medium",
|
|
6
|
+
selected = "false"
|
|
7
|
+
} = props;
|
|
8
|
+
return ["cocso-radio", size && `cocso-radio--size-${size}`, selected && `cocso-radio--selected-${selected}`].filter(Boolean).join(" ");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { radio };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function skeleton(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
variant = "text",
|
|
6
|
+
animation = "pulse"
|
|
7
|
+
} = props;
|
|
8
|
+
return ["cocso-skeleton", variant && `cocso-skeleton--variant-${variant}`, animation && `cocso-skeleton--animation-${animation}`].filter(Boolean).join(" ");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { skeleton };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
const SPINNER_GEOMETRY = {
|
|
4
|
+
"large": {
|
|
5
|
+
"blades": 10,
|
|
6
|
+
"bladeWidth": 2,
|
|
7
|
+
"bladeHeight": 6,
|
|
8
|
+
"bladeRadius": 1,
|
|
9
|
+
"output": 20
|
|
10
|
+
},
|
|
11
|
+
"medium": {
|
|
12
|
+
"blades": 8,
|
|
13
|
+
"bladeWidth": 2,
|
|
14
|
+
"bladeHeight": 5,
|
|
15
|
+
"bladeRadius": 1,
|
|
16
|
+
"output": 16
|
|
17
|
+
},
|
|
18
|
+
"small": {
|
|
19
|
+
"blades": 6,
|
|
20
|
+
"bladeWidth": 1.5,
|
|
21
|
+
"bladeHeight": 4,
|
|
22
|
+
"bladeRadius": 0.75,
|
|
23
|
+
"output": 12
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
function getSpinnerGeometry(size) {
|
|
27
|
+
return SPINNER_GEOMETRY[size];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { SPINNER_GEOMETRY, getSpinnerGeometry };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function spinner(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
variant = "primary",
|
|
6
|
+
size = "medium"
|
|
7
|
+
} = props;
|
|
8
|
+
return ["cocso-spinner", variant && `cocso-spinner--variant-${variant}`, size && `cocso-spinner--size-${size}`].filter(Boolean).join(" ");
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { spinner };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function stockQuantityStatus(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
quantity = "sufficient"
|
|
6
|
+
} = props;
|
|
7
|
+
return ["cocso-stock-quantity-status", quantity && `cocso-stock-quantity-status--quantity-${quantity}`].filter(Boolean).join(" ");
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { stockQuantityStatus };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* Generated by @cocso-ui/codegen — do not edit */
|
|
2
|
+
|
|
3
|
+
function switchStyles(props = {}) {
|
|
4
|
+
const {
|
|
5
|
+
variant = "primary",
|
|
6
|
+
size = "medium",
|
|
7
|
+
checked = "true"
|
|
8
|
+
} = props;
|
|
9
|
+
return ["cocso-switch", variant && `cocso-switch--variant-${variant}`, size && `cocso-switch--size-${size}`, checked && `cocso-switch--checked-${checked}`].filter(Boolean).join(" ");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { switchStyles };
|