cetec-design-system 0.0.2
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/.github/CODEOWNERS +1 -0
- package/.husky/task-runner.json +10 -0
- package/.nvmrc +1 -0
- package/.prettierrc +8 -0
- package/.storybook/main.ts +18 -0
- package/.storybook/preview-body.html +0 -0
- package/.storybook/preview-head.tsx +1 -0
- package/.storybook/preview.tsx +21 -0
- package/LICENSE.md +21 -0
- package/README.md +50 -0
- package/eslint.config.js +50 -0
- package/index.html +13 -0
- package/package.json +69 -0
- package/panda.config.ts +201 -0
- package/postcss.config.cjs +5 -0
- package/public/sprite.svg +1 -0
- package/public/sprite.symbol.html +4091 -0
- package/public/svgs/Building.svg +1 -0
- package/public/svgs/aa-placeholder.svg +1 -0
- package/public/svgs/alarm.svg +1 -0
- package/public/svgs/apps.svg +1 -0
- package/public/svgs/arrow-down.svg +1 -0
- package/public/svgs/arrow-drop-down.svg +1 -0
- package/public/svgs/arrow-drop-up.svg +1 -0
- package/public/svgs/arrow-left.svg +1 -0
- package/public/svgs/arrow-line-down.svg +1 -0
- package/public/svgs/arrow-line-left.svg +1 -0
- package/public/svgs/arrow-line-right.svg +1 -0
- package/public/svgs/arrow-line-up.svg +1 -0
- package/public/svgs/arrow-prompt.svg +1 -0
- package/public/svgs/arrow-redo.svg +1 -0
- package/public/svgs/arrow-right.svg +1 -0
- package/public/svgs/arrow-square-in.svg +1 -0
- package/public/svgs/arrow-square-out.svg +1 -0
- package/public/svgs/arrow-undo.svg +1 -0
- package/public/svgs/arrow-up.svg +1 -0
- package/public/svgs/arrows-down-up.svg +1 -0
- package/public/svgs/arrows-left-right.svg +1 -0
- package/public/svgs/at.svg +1 -0
- package/public/svgs/attachment.svg +1 -0
- package/public/svgs/barcode-reader.svg +1 -0
- package/public/svgs/barcode.svg +1 -0
- package/public/svgs/basket.svg +1 -0
- package/public/svgs/bell-active.svg +1 -0
- package/public/svgs/bell-slash.svg +1 -0
- package/public/svgs/bell.svg +1 -0
- package/public/svgs/bin.svg +1 -0
- package/public/svgs/bookmark-outlined.svg +1 -0
- package/public/svgs/bookmark.svg +1 -0
- package/public/svgs/bookmarks.svg +1 -0
- package/public/svgs/calendar-add.svg +1 -0
- package/public/svgs/calendar-view-day.svg +1 -0
- package/public/svgs/calendar-view-month.svg +1 -0
- package/public/svgs/calendar-view-week.svg +1 -0
- package/public/svgs/calendar.svg +1 -0
- package/public/svgs/caret-down.svg +1 -0
- package/public/svgs/caret-left.svg +1 -0
- package/public/svgs/caret-right.svg +1 -0
- package/public/svgs/caret-up.svg +1 -0
- package/public/svgs/cart.svg +1 -0
- package/public/svgs/check-thick.svg +1 -0
- package/public/svgs/check.svg +1 -0
- package/public/svgs/checkbox-checked.svg +1 -0
- package/public/svgs/checkbox-focus.svg +1 -0
- package/public/svgs/checkbox-indeterminate.svg +1 -0
- package/public/svgs/checkbox.svg +1 -0
- package/public/svgs/circle-check.svg +1 -0
- package/public/svgs/circle.svg +1 -0
- package/public/svgs/circles-add.svg +1 -0
- package/public/svgs/clipboard.svg +1 -0
- package/public/svgs/clock-countdown.svg +1 -0
- package/public/svgs/clock.svg +1 -0
- package/public/svgs/cloud-synced.svg +1 -0
- package/public/svgs/code.svg +1 -0
- package/public/svgs/color.svg +1 -0
- package/public/svgs/copy.svg +1 -0
- package/public/svgs/credit-card.svg +1 -0
- package/public/svgs/cut.svg +1 -0
- package/public/svgs/database.svg +1 -0
- package/public/svgs/devices.svg +1 -0
- package/public/svgs/dictionary.svg +1 -0
- package/public/svgs/dots.svg +1 -0
- package/public/svgs/download-cloud.svg +1 -0
- package/public/svgs/download.svg +1 -0
- package/public/svgs/dragger.svg +1 -0
- package/public/svgs/edit.svg +1 -0
- package/public/svgs/encrypted.svg +1 -0
- package/public/svgs/envelope.svg +1 -0
- package/public/svgs/equal.svg +1 -0
- package/public/svgs/eraser.svg +1 -0
- package/public/svgs/error.svg +1 -0
- package/public/svgs/event-list.svg +1 -0
- package/public/svgs/export.svg +1 -0
- package/public/svgs/extension.svg +1 -0
- package/public/svgs/eye-slash.svg +1 -0
- package/public/svgs/eye.svg +1 -0
- package/public/svgs/file-add.svg +1 -0
- package/public/svgs/file.svg +1 -0
- package/public/svgs/files.svg +1 -0
- package/public/svgs/filter-remove.svg +1 -0
- package/public/svgs/filter.svg +1 -0
- package/public/svgs/finish.svg +1 -0
- package/public/svgs/flag.svg +1 -0
- package/public/svgs/forklift.svg +1 -0
- package/public/svgs/garage.svg +1 -0
- package/public/svgs/globe.svg +1 -0
- package/public/svgs/hash.svg +1 -0
- package/public/svgs/heart-outlined.svg +1 -0
- package/public/svgs/heart.svg +1 -0
- package/public/svgs/help.svg +1 -0
- package/public/svgs/history.svg +1 -0
- package/public/svgs/home.svg +1 -0
- package/public/svgs/image.svg +1 -0
- package/public/svgs/images.svg +1 -0
- package/public/svgs/inbox.svg +1 -0
- package/public/svgs/infinity.svg +1 -0
- package/public/svgs/info.svg +1 -0
- package/public/svgs/inventory.svg +1 -0
- package/public/svgs/invoice.svg +1 -0
- package/public/svgs/jump-back.svg +1 -0
- package/public/svgs/jump-forward.svg +1 -0
- package/public/svgs/kbd-backspace.svg +1 -0
- package/public/svgs/kbd-capslock.svg +1 -0
- package/public/svgs/kbd-command.svg +1 -0
- package/public/svgs/kbd-control.svg +1 -0
- package/public/svgs/kbd-hide.svg +1 -0
- package/public/svgs/kbd-option.svg +1 -0
- package/public/svgs/kbd-return.svg +1 -0
- package/public/svgs/kbd-shift.svg +1 -0
- package/public/svgs/kbd-space.svg +1 -0
- package/public/svgs/kbd.svg +1 -0
- package/public/svgs/link-slash.svg +1 -0
- package/public/svgs/link.svg +1 -0
- package/public/svgs/list-bullets.svg +1 -0
- package/public/svgs/list-checks.svg +1 -0
- package/public/svgs/list-numbers.svg +1 -0
- package/public/svgs/lock-open.svg +1 -0
- package/public/svgs/lock.svg +1 -0
- package/public/svgs/map-pin.svg +1 -0
- package/public/svgs/mark-unread.svg +1 -0
- package/public/svgs/menu-close.svg +1 -0
- package/public/svgs/menu.svg +1 -0
- package/public/svgs/message.svg +1 -0
- package/public/svgs/messages.svg +1 -0
- package/public/svgs/minus-thick.svg +1 -0
- package/public/svgs/minus.svg +1 -0
- package/public/svgs/money.svg +1 -0
- package/public/svgs/monitor.svg +1 -0
- package/public/svgs/moon.svg +1 -0
- package/public/svgs/note.svg +1 -0
- package/public/svgs/nut.svg +1 -0
- package/public/svgs/order.svg +1 -0
- package/public/svgs/package.svg +1 -0
- package/public/svgs/page-first.svg +1 -0
- package/public/svgs/page-last.svg +1 -0
- package/public/svgs/parts.svg +1 -0
- package/public/svgs/password.svg +1 -0
- package/public/svgs/pause.svg +1 -0
- package/public/svgs/pencil.svg +1 -0
- package/public/svgs/percent.svg +1 -0
- package/public/svgs/placeholder.svg +1 -0
- package/public/svgs/plan.svg +1 -0
- package/public/svgs/play-pause.svg +1 -0
- package/public/svgs/play.svg +1 -0
- package/public/svgs/plus.svg +1 -0
- package/public/svgs/printer.svg +1 -0
- package/public/svgs/prohibit.svg +1 -0
- package/public/svgs/question-mark.svg +1 -0
- package/public/svgs/quote.svg +1 -0
- package/public/svgs/radio-checked.svg +1 -0
- package/public/svgs/radio-focus.svg +1 -0
- package/public/svgs/radio.svg +1 -0
- package/public/svgs/receipt.svg +1 -0
- package/public/svgs/refresh.svg +1 -0
- package/public/svgs/repeat.svg +1 -0
- package/public/svgs/reply-all.svg +1 -0
- package/public/svgs/reply.svg +1 -0
- package/public/svgs/ribbon.svg +1 -0
- package/public/svgs/rows-add.svg +1 -0
- package/public/svgs/rules.svg +1 -0
- package/public/svgs/search-items.svg +1 -0
- package/public/svgs/search.svg +1 -0
- package/public/svgs/send.svg +1 -0
- package/public/svgs/settings.svg +1 -0
- package/public/svgs/share.svg +1 -0
- package/public/svgs/shuffle.svg +1 -0
- package/public/svgs/skip-back.svg +1 -0
- package/public/svgs/skip-forward.svg +1 -0
- package/public/svgs/skull.svg +1 -0
- package/public/svgs/sliders.svg +1 -0
- package/public/svgs/sort-alpha-down.svg +1 -0
- package/public/svgs/sort-alpha-up.svg +1 -0
- package/public/svgs/sort-ascending.svg +1 -0
- package/public/svgs/sort-descending.svg +1 -0
- package/public/svgs/sort-time-down.svg +1 -0
- package/public/svgs/sort-time-up.svg +1 -0
- package/public/svgs/square-add.svg +1 -0
- package/public/svgs/square.svg +1 -0
- package/public/svgs/stamp.svg +1 -0
- package/public/svgs/star-outlined.svg +1 -0
- package/public/svgs/star.svg +1 -0
- package/public/svgs/start.svg +1 -0
- package/public/svgs/stop.svg +1 -0
- package/public/svgs/success.svg +1 -0
- package/public/svgs/sun.svg +1 -0
- package/public/svgs/support.svg +1 -0
- package/public/svgs/sync.svg +1 -0
- package/public/svgs/tag.svg +1 -0
- package/public/svgs/target.svg +1 -0
- package/public/svgs/text-add.svg +1 -0
- package/public/svgs/time-add.svg +1 -0
- package/public/svgs/timer.svg +1 -0
- package/public/svgs/toolbox.svg +1 -0
- package/public/svgs/tools.svg +1 -0
- package/public/svgs/trash.svg +1 -0
- package/public/svgs/trophy.svg +1 -0
- package/public/svgs/truck-trailer.svg +1 -0
- package/public/svgs/update.svg +1 -0
- package/public/svgs/upload-cloud.svg +1 -0
- package/public/svgs/upload.svg +1 -0
- package/public/svgs/user-add.svg +1 -0
- package/public/svgs/user-details.svg +1 -0
- package/public/svgs/user-group.svg +1 -0
- package/public/svgs/user-id-badge.svg +1 -0
- package/public/svgs/user-id-card.svg +1 -0
- package/public/svgs/user.svg +1 -0
- package/public/svgs/verified.svg +1 -0
- package/public/svgs/video.svg +1 -0
- package/public/svgs/view-cards.svg +1 -0
- package/public/svgs/view-doc.svg +1 -0
- package/public/svgs/view-grid.svg +1 -0
- package/public/svgs/view-rows.svg +1 -0
- package/public/svgs/view-table.svg +1 -0
- package/public/svgs/warning.svg +1 -0
- package/public/svgs/work-order.svg +1 -0
- package/public/svgs/x.svg +1 -0
- package/public/vite.svg +1 -0
- package/src/App.tsx +429 -0
- package/src/components/Box/Box.tsx +26 -0
- package/src/components/Box/index.tsx +1 -0
- package/src/components/Button/Button.stories.tsx +129 -0
- package/src/components/Button/Button.tsx +45 -0
- package/src/components/Button/ButtonContent.tsx +32 -0
- package/src/components/Button/index.tsx +1 -0
- package/src/components/CheckBox/CheckBox.tsx +37 -0
- package/src/components/CheckBox/index.tsx +1 -0
- package/src/components/Code/Code.tsx +35 -0
- package/src/components/Code/Pre.tsx +35 -0
- package/src/components/Code/copy-to-clipboard-button.tsx +41 -0
- package/src/components/Code/index.tsx +2 -0
- package/src/components/Divider/Divider.tsx +26 -0
- package/src/components/Divider/index.tsx +1 -0
- package/src/components/Heading/Heading.tsx +33 -0
- package/src/components/Heading/index.tsx +1 -0
- package/src/components/Icon/Icon.stories.tsx +31 -0
- package/src/components/Icon/Icon.tsx +46 -0
- package/src/components/Icon/iconNames.ts +219 -0
- package/src/components/Icon/icons.d.ts +1 -0
- package/src/components/Icon/index.tsx +3 -0
- package/src/components/IconButton/IconButton.tsx +58 -0
- package/src/components/IconButton/index.tsx +1 -0
- package/src/components/Input/Input.tsx +42 -0
- package/src/components/Input/index.tsx +1 -0
- package/src/components/Label/Label.tsx +33 -0
- package/src/components/Label/index.tsx +1 -0
- package/src/components/Link/Link.tsx +54 -0
- package/src/components/Link/index.tsx +1 -0
- package/src/components/PandaPatterns.tsx +23 -0
- package/src/components/Radio/Radio.tsx +28 -0
- package/src/components/Radio/index.tsx +1 -0
- package/src/components/Slot.tsx +16 -0
- package/src/components/Spinner/Spinner.tsx +22 -0
- package/src/components/Spinner/index.tsx +1 -0
- package/src/components/Text/Text.stories.tsx +106 -0
- package/src/components/Text/Text.tsx +39 -0
- package/src/components/Text/index.tsx +1 -0
- package/src/components/Textarea/Textarea.tsx +46 -0
- package/src/components/Textarea/index.tsx +1 -0
- package/src/components/ThemeSwitcher/ThemeSwitcher.tsx +20 -0
- package/src/components/ThemeSwitcher/index.tsx +1 -0
- package/src/contexts/ThemeContext.tsx +77 -0
- package/src/index.ts +64 -0
- package/src/main.tsx +10 -0
- package/src/recipes/box.ts +16 -0
- package/src/recipes/button.ts +220 -0
- package/src/recipes/checkbox.ts +88 -0
- package/src/recipes/code.ts +37 -0
- package/src/recipes/divider.ts +40 -0
- package/src/recipes/index.ts +10 -0
- package/src/recipes/input.ts +56 -0
- package/src/recipes/radio.ts +71 -0
- package/src/recipes/spinner.ts +42 -0
- package/src/recipes/text.ts +185 -0
- package/src/recipes/textarea.ts +77 -0
- package/src/storybook/Tokens.mdx +169 -0
- package/src/storybook/components/Colors.tsx +78 -0
- package/src/storybook/doctemplate.mdx +36 -0
- package/src/storybook/intro.mdx +15 -0
- package/src/styles/conditions.ts +108 -0
- package/src/styles/font-imports.css +35 -0
- package/src/styles/globalStyle.ts +85 -0
- package/src/styles/index.css +3 -0
- package/src/styles/semanticTokens.ts +110 -0
- package/src/styles/tokens.ts +580 -0
- package/src/utils/forwardRefWithAs.ts +26 -0
- package/src/utils/generate-sprite.js +174 -0
- package/src/utils/splitProps.ts +11 -0
- package/src/utils/sprite-config.js +25 -0
- package/src/utils/svgsSource/Building.svg +3 -0
- package/src/utils/svgsSource/aa-placeholder.svg +3 -0
- package/src/utils/svgsSource/alarm.svg +3 -0
- package/src/utils/svgsSource/apps.svg +3 -0
- package/src/utils/svgsSource/arrow-down.svg +3 -0
- package/src/utils/svgsSource/arrow-drop-down.svg +3 -0
- package/src/utils/svgsSource/arrow-drop-up.svg +3 -0
- package/src/utils/svgsSource/arrow-left.svg +3 -0
- package/src/utils/svgsSource/arrow-line-down.svg +3 -0
- package/src/utils/svgsSource/arrow-line-left.svg +3 -0
- package/src/utils/svgsSource/arrow-line-right.svg +3 -0
- package/src/utils/svgsSource/arrow-line-up.svg +3 -0
- package/src/utils/svgsSource/arrow-prompt.svg +3 -0
- package/src/utils/svgsSource/arrow-redo.svg +3 -0
- package/src/utils/svgsSource/arrow-right.svg +3 -0
- package/src/utils/svgsSource/arrow-square-in.svg +4 -0
- package/src/utils/svgsSource/arrow-square-out.svg +4 -0
- package/src/utils/svgsSource/arrow-undo.svg +3 -0
- package/src/utils/svgsSource/arrow-up.svg +3 -0
- package/src/utils/svgsSource/arrows-down-up.svg +3 -0
- package/src/utils/svgsSource/arrows-left-right.svg +3 -0
- package/src/utils/svgsSource/at.svg +3 -0
- package/src/utils/svgsSource/attachment.svg +3 -0
- package/src/utils/svgsSource/barcode-reader.svg +3 -0
- package/src/utils/svgsSource/barcode.svg +10 -0
- package/src/utils/svgsSource/basket.svg +6 -0
- package/src/utils/svgsSource/bell-active.svg +3 -0
- package/src/utils/svgsSource/bell-slash.svg +3 -0
- package/src/utils/svgsSource/bell.svg +3 -0
- package/src/utils/svgsSource/bin.svg +3 -0
- package/src/utils/svgsSource/bookmark-outlined.svg +3 -0
- package/src/utils/svgsSource/bookmark.svg +3 -0
- package/src/utils/svgsSource/bookmarks.svg +3 -0
- package/src/utils/svgsSource/calendar-add.svg +3 -0
- package/src/utils/svgsSource/calendar-view-day.svg +3 -0
- package/src/utils/svgsSource/calendar-view-month.svg +3 -0
- package/src/utils/svgsSource/calendar-view-week.svg +3 -0
- package/src/utils/svgsSource/calendar.svg +3 -0
- package/src/utils/svgsSource/caret-down.svg +3 -0
- package/src/utils/svgsSource/caret-left.svg +3 -0
- package/src/utils/svgsSource/caret-right.svg +3 -0
- package/src/utils/svgsSource/caret-up.svg +3 -0
- package/src/utils/svgsSource/cart.svg +3 -0
- package/src/utils/svgsSource/check-thick.svg +3 -0
- package/src/utils/svgsSource/check.svg +3 -0
- package/src/utils/svgsSource/checkbox-checked.svg +3 -0
- package/src/utils/svgsSource/checkbox-focus.svg +3 -0
- package/src/utils/svgsSource/checkbox-indeterminate.svg +3 -0
- package/src/utils/svgsSource/checkbox.svg +3 -0
- package/src/utils/svgsSource/circle-check.svg +3 -0
- package/src/utils/svgsSource/circle.svg +3 -0
- package/src/utils/svgsSource/circles-add.svg +3 -0
- package/src/utils/svgsSource/clipboard.svg +3 -0
- package/src/utils/svgsSource/clock-countdown.svg +3 -0
- package/src/utils/svgsSource/clock.svg +3 -0
- package/src/utils/svgsSource/cloud-synced.svg +3 -0
- package/src/utils/svgsSource/code.svg +3 -0
- package/src/utils/svgsSource/color.svg +3 -0
- package/src/utils/svgsSource/copy.svg +4 -0
- package/src/utils/svgsSource/credit-card.svg +3 -0
- package/src/utils/svgsSource/cut.svg +3 -0
- package/src/utils/svgsSource/database.svg +3 -0
- package/src/utils/svgsSource/devices.svg +3 -0
- package/src/utils/svgsSource/dictionary.svg +3 -0
- package/src/utils/svgsSource/dots.svg +3 -0
- package/src/utils/svgsSource/download-cloud.svg +3 -0
- package/src/utils/svgsSource/download.svg +3 -0
- package/src/utils/svgsSource/dragger.svg +3 -0
- package/src/utils/svgsSource/edit.svg +3 -0
- package/src/utils/svgsSource/encrypted.svg +3 -0
- package/src/utils/svgsSource/envelope.svg +3 -0
- package/src/utils/svgsSource/equal.svg +3 -0
- package/src/utils/svgsSource/eraser.svg +3 -0
- package/src/utils/svgsSource/error.svg +3 -0
- package/src/utils/svgsSource/event-list.svg +3 -0
- package/src/utils/svgsSource/export.svg +4 -0
- package/src/utils/svgsSource/extension.svg +3 -0
- package/src/utils/svgsSource/eye-slash.svg +3 -0
- package/src/utils/svgsSource/eye.svg +3 -0
- package/src/utils/svgsSource/file-add.svg +3 -0
- package/src/utils/svgsSource/file.svg +3 -0
- package/src/utils/svgsSource/files.svg +3 -0
- package/src/utils/svgsSource/filter-remove.svg +6 -0
- package/src/utils/svgsSource/filter.svg +5 -0
- package/src/utils/svgsSource/finish.svg +3 -0
- package/src/utils/svgsSource/flag.svg +3 -0
- package/src/utils/svgsSource/forklift.svg +3 -0
- package/src/utils/svgsSource/garage.svg +3 -0
- package/src/utils/svgsSource/globe.svg +3 -0
- package/src/utils/svgsSource/hash.svg +3 -0
- package/src/utils/svgsSource/heart-outlined.svg +3 -0
- package/src/utils/svgsSource/heart.svg +3 -0
- package/src/utils/svgsSource/help.svg +3 -0
- package/src/utils/svgsSource/history.svg +3 -0
- package/src/utils/svgsSource/home.svg +3 -0
- package/src/utils/svgsSource/image.svg +3 -0
- package/src/utils/svgsSource/images.svg +3 -0
- package/src/utils/svgsSource/inbox.svg +3 -0
- package/src/utils/svgsSource/infinity.svg +3 -0
- package/src/utils/svgsSource/info.svg +3 -0
- package/src/utils/svgsSource/inventory.svg +5 -0
- package/src/utils/svgsSource/invoice.svg +4 -0
- package/src/utils/svgsSource/jump-back.svg +3 -0
- package/src/utils/svgsSource/jump-forward.svg +3 -0
- package/src/utils/svgsSource/kbd-backspace.svg +3 -0
- package/src/utils/svgsSource/kbd-capslock.svg +3 -0
- package/src/utils/svgsSource/kbd-command.svg +3 -0
- package/src/utils/svgsSource/kbd-control.svg +3 -0
- package/src/utils/svgsSource/kbd-hide.svg +3 -0
- package/src/utils/svgsSource/kbd-option.svg +3 -0
- package/src/utils/svgsSource/kbd-return.svg +3 -0
- package/src/utils/svgsSource/kbd-shift.svg +3 -0
- package/src/utils/svgsSource/kbd-space.svg +3 -0
- package/src/utils/svgsSource/kbd.svg +3 -0
- package/src/utils/svgsSource/link-slash.svg +3 -0
- package/src/utils/svgsSource/link.svg +3 -0
- package/src/utils/svgsSource/list-bullets.svg +8 -0
- package/src/utils/svgsSource/list-checks.svg +7 -0
- package/src/utils/svgsSource/list-numbers.svg +7 -0
- package/src/utils/svgsSource/lock-open.svg +3 -0
- package/src/utils/svgsSource/lock.svg +3 -0
- package/src/utils/svgsSource/map-pin.svg +3 -0
- package/src/utils/svgsSource/mark-unread.svg +3 -0
- package/src/utils/svgsSource/menu-close.svg +3 -0
- package/src/utils/svgsSource/menu.svg +3 -0
- package/src/utils/svgsSource/message.svg +3 -0
- package/src/utils/svgsSource/messages.svg +4 -0
- package/src/utils/svgsSource/minus-thick.svg +3 -0
- package/src/utils/svgsSource/minus.svg +3 -0
- package/src/utils/svgsSource/money.svg +3 -0
- package/src/utils/svgsSource/monitor.svg +3 -0
- package/src/utils/svgsSource/moon.svg +5 -0
- package/src/utils/svgsSource/note.svg +3 -0
- package/src/utils/svgsSource/nut.svg +3 -0
- package/src/utils/svgsSource/order.svg +3 -0
- package/src/utils/svgsSource/package.svg +3 -0
- package/src/utils/svgsSource/page-first.svg +3 -0
- package/src/utils/svgsSource/page-last.svg +3 -0
- package/src/utils/svgsSource/parts.svg +7 -0
- package/src/utils/svgsSource/password.svg +5 -0
- package/src/utils/svgsSource/pause.svg +3 -0
- package/src/utils/svgsSource/pencil.svg +4 -0
- package/src/utils/svgsSource/percent.svg +3 -0
- package/src/utils/svgsSource/play-pause.svg +3 -0
- package/src/utils/svgsSource/play.svg +3 -0
- package/src/utils/svgsSource/plus.svg +3 -0
- package/src/utils/svgsSource/printer.svg +3 -0
- package/src/utils/svgsSource/prohibit.svg +3 -0
- package/src/utils/svgsSource/question-mark.svg +3 -0
- package/src/utils/svgsSource/quote.svg +3 -0
- package/src/utils/svgsSource/radio-checked.svg +4 -0
- package/src/utils/svgsSource/radio-focus.svg +3 -0
- package/src/utils/svgsSource/radio.svg +3 -0
- package/src/utils/svgsSource/receipt.svg +3 -0
- package/src/utils/svgsSource/refresh.svg +3 -0
- package/src/utils/svgsSource/repeat.svg +3 -0
- package/src/utils/svgsSource/reply-all.svg +3 -0
- package/src/utils/svgsSource/reply.svg +3 -0
- package/src/utils/svgsSource/ribbon.svg +3 -0
- package/src/utils/svgsSource/rows-add.svg +5 -0
- package/src/utils/svgsSource/rules.svg +3 -0
- package/src/utils/svgsSource/search-items.svg +3 -0
- package/src/utils/svgsSource/search.svg +3 -0
- package/src/utils/svgsSource/send.svg +3 -0
- package/src/utils/svgsSource/settings.svg +3 -0
- package/src/utils/svgsSource/share.svg +4 -0
- package/src/utils/svgsSource/shuffle.svg +3 -0
- package/src/utils/svgsSource/skip-back.svg +3 -0
- package/src/utils/svgsSource/skip-forward.svg +3 -0
- package/src/utils/svgsSource/skull.svg +3 -0
- package/src/utils/svgsSource/sliders.svg +3 -0
- package/src/utils/svgsSource/sort-alpha-down.svg +5 -0
- package/src/utils/svgsSource/sort-alpha-up.svg +5 -0
- package/src/utils/svgsSource/sort-ascending.svg +6 -0
- package/src/utils/svgsSource/sort-descending.svg +6 -0
- package/src/utils/svgsSource/sort-time-down.svg +4 -0
- package/src/utils/svgsSource/sort-time-up.svg +4 -0
- package/src/utils/svgsSource/square-add.svg +3 -0
- package/src/utils/svgsSource/square.svg +3 -0
- package/src/utils/svgsSource/stamp.svg +3 -0
- package/src/utils/svgsSource/star-outlined.svg +3 -0
- package/src/utils/svgsSource/star.svg +3 -0
- package/src/utils/svgsSource/start.svg +3 -0
- package/src/utils/svgsSource/stop.svg +3 -0
- package/src/utils/svgsSource/success.svg +3 -0
- package/src/utils/svgsSource/sun.svg +3 -0
- package/src/utils/svgsSource/support.svg +3 -0
- package/src/utils/svgsSource/sync.svg +4 -0
- package/src/utils/svgsSource/tag.svg +3 -0
- package/src/utils/svgsSource/target.svg +3 -0
- package/src/utils/svgsSource/text-add.svg +3 -0
- package/src/utils/svgsSource/time-add.svg +3 -0
- package/src/utils/svgsSource/timer.svg +3 -0
- package/src/utils/svgsSource/toolbox.svg +3 -0
- package/src/utils/svgsSource/tools.svg +3 -0
- package/src/utils/svgsSource/trash.svg +3 -0
- package/src/utils/svgsSource/trophy.svg +3 -0
- package/src/utils/svgsSource/truck-trailer.svg +3 -0
- package/src/utils/svgsSource/update.svg +3 -0
- package/src/utils/svgsSource/upload-cloud.svg +3 -0
- package/src/utils/svgsSource/upload.svg +3 -0
- package/src/utils/svgsSource/user-add.svg +3 -0
- package/src/utils/svgsSource/user-details.svg +7 -0
- package/src/utils/svgsSource/user-group.svg +3 -0
- package/src/utils/svgsSource/user-id-badge.svg +3 -0
- package/src/utils/svgsSource/user-id-card.svg +3 -0
- package/src/utils/svgsSource/user.svg +3 -0
- package/src/utils/svgsSource/verified.svg +3 -0
- package/src/utils/svgsSource/video.svg +3 -0
- package/src/utils/svgsSource/view-cards.svg +6 -0
- package/src/utils/svgsSource/view-doc.svg +7 -0
- package/src/utils/svgsSource/view-grid.svg +3 -0
- package/src/utils/svgsSource/view-rows.svg +4 -0
- package/src/utils/svgsSource/view-table.svg +3 -0
- package/src/utils/svgsSource/warning.svg +3 -0
- package/src/utils/svgsSource/work-order.svg +3 -0
- package/src/utils/svgsSource/x.svg +3 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +33 -0
- package/vite.config.ts +39 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @Etwigg @shaunrfox
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
22.0.0
|
package/.prettierrc
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-vite';
|
|
2
|
+
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
stories: [
|
|
5
|
+
'../src/**/*.mdx',
|
|
6
|
+
'../src/components/Text/*.stories.@(js|jsx|mjs|ts|tsx)'
|
|
7
|
+
],
|
|
8
|
+
addons: [
|
|
9
|
+
'@storybook/addon-onboarding',
|
|
10
|
+
'@storybook/addon-essentials',
|
|
11
|
+
'@storybook/addon-interactions'
|
|
12
|
+
],
|
|
13
|
+
framework: {
|
|
14
|
+
name: '@storybook/react-vite',
|
|
15
|
+
options: {},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export default config;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Preview } from '@storybook/react';
|
|
2
|
+
import DocTemplate from '../src/storybook/doctemplate.mdx';
|
|
3
|
+
import '../styled-system/styles.css';
|
|
4
|
+
|
|
5
|
+
const preview: Preview = {
|
|
6
|
+
parameters: {
|
|
7
|
+
controls: {
|
|
8
|
+
matchers: {
|
|
9
|
+
color: /(background|color)$/i,
|
|
10
|
+
date: /Date$/i,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
docs: {
|
|
14
|
+
page: DocTemplate,
|
|
15
|
+
toc: {
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default preview;
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Cetec-ERP
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
|
|
13
|
+
|
|
14
|
+
- Configure the top-level `parserOptions` property like this:
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
export default tseslint.config({
|
|
18
|
+
languageOptions: {
|
|
19
|
+
// other options...
|
|
20
|
+
parserOptions: {
|
|
21
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
22
|
+
tsconfigRootDir: import.meta.dirname,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
|
|
29
|
+
- Optionally add `...tseslint.configs.stylisticTypeChecked`
|
|
30
|
+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
// eslint.config.js
|
|
34
|
+
import react from 'eslint-plugin-react'
|
|
35
|
+
|
|
36
|
+
export default tseslint.config({
|
|
37
|
+
// Set the react version
|
|
38
|
+
settings: { react: { version: '18.3' } },
|
|
39
|
+
plugins: {
|
|
40
|
+
// Add the react plugin
|
|
41
|
+
react,
|
|
42
|
+
},
|
|
43
|
+
rules: {
|
|
44
|
+
// other rules...
|
|
45
|
+
// Enable its recommended rules
|
|
46
|
+
...react.configs.recommended.rules,
|
|
47
|
+
...react.configs['jsx-runtime'].rules,
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
```
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import globals from 'globals';
|
|
3
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
+
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
5
|
+
import reactPlugin from 'eslint-plugin-react';
|
|
6
|
+
import tseslint from 'typescript-eslint';
|
|
7
|
+
|
|
8
|
+
export default tseslint.config(
|
|
9
|
+
{ ignores: ['dist'] },
|
|
10
|
+
{
|
|
11
|
+
extends: [
|
|
12
|
+
js.configs.recommended,
|
|
13
|
+
...tseslint.configs.recommended,
|
|
14
|
+
'plugin:prettier/recommended',
|
|
15
|
+
],
|
|
16
|
+
files: ['**/*.{ts,tsx}'],
|
|
17
|
+
languageOptions: {
|
|
18
|
+
ecmaVersion: 2020,
|
|
19
|
+
globals: {
|
|
20
|
+
...globals.browser,
|
|
21
|
+
React: true,
|
|
22
|
+
JSX: true,
|
|
23
|
+
},
|
|
24
|
+
parserOptions: {
|
|
25
|
+
ecmaFeatures: {
|
|
26
|
+
jsx: true,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
plugins: {
|
|
31
|
+
react: reactPlugin,
|
|
32
|
+
'react-hooks': reactHooks,
|
|
33
|
+
'react-refresh': reactRefresh,
|
|
34
|
+
prettier: 'prettier',
|
|
35
|
+
},
|
|
36
|
+
settings: {
|
|
37
|
+
react: {
|
|
38
|
+
version: 'detect',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
rules: {
|
|
42
|
+
...reactHooks.configs.recommended.rules,
|
|
43
|
+
'react-refresh/only-export-components': [
|
|
44
|
+
'warn',
|
|
45
|
+
{ allowConstantExport: true },
|
|
46
|
+
],
|
|
47
|
+
'prettier/prettier': 'error',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
);
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Vite + React + TS</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cetec-design-system",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"cssgen": "npx panda cssgen 'src/**/*.css'",
|
|
7
|
+
"prepare": "npx panda codegen",
|
|
8
|
+
"dev": "npx panda codegen --watch & vite",
|
|
9
|
+
"build": "npx panda codegen && vite build",
|
|
10
|
+
"lint": "eslint .",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"generate-sprite": "node src/utils/generate-sprite.js",
|
|
13
|
+
"storybook": "storybook dev -p 6006",
|
|
14
|
+
"build-storybook": "storybook build",
|
|
15
|
+
"husky": "dotnet tool restore && dotnet husky install"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@fontsource-variable/recursive": "^5.1.1",
|
|
19
|
+
"@fontsource-variable/ruda": "^5.1.1",
|
|
20
|
+
"react": "19.0.0",
|
|
21
|
+
"react-dom": "19.0.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@eslint/js": "^9.17.0",
|
|
25
|
+
"@pandacss/dev": "^0.51.1",
|
|
26
|
+
"@storybook/addon-essentials": "^8.5.2",
|
|
27
|
+
"@storybook/addon-interactions": "^8.5.2",
|
|
28
|
+
"@storybook/addon-onboarding": "^8.5.2",
|
|
29
|
+
"@storybook/blocks": "^8.5.2",
|
|
30
|
+
"@storybook/react": "^8.5.2",
|
|
31
|
+
"@storybook/react-vite": "^8.5.2",
|
|
32
|
+
"@storybook/test": "^8.5.2",
|
|
33
|
+
"@types/node": "^22.7.7",
|
|
34
|
+
"@types/react": "19.0.8",
|
|
35
|
+
"@types/react-dom": "19.0.3",
|
|
36
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
37
|
+
"eslint": "^9.17.0",
|
|
38
|
+
"eslint-config-prettier": "^9.1.0",
|
|
39
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
40
|
+
"eslint-plugin-react": "^7.37.2",
|
|
41
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
42
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
43
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
44
|
+
"globals": "^15.14.0",
|
|
45
|
+
"postcss": "^8.5.1",
|
|
46
|
+
"prettier": "^3.3.3",
|
|
47
|
+
"storybook": "^8.5.2",
|
|
48
|
+
"svg-sprite": "^2.0.4",
|
|
49
|
+
"svgo": "^3.0.2",
|
|
50
|
+
"typescript": "~5.7.3",
|
|
51
|
+
"typescript-eslint": "^8.18.2",
|
|
52
|
+
"vite": "^6.0.5"
|
|
53
|
+
},
|
|
54
|
+
"eslintConfig": {
|
|
55
|
+
"extends": ["plugin:storybook/recommended"]
|
|
56
|
+
},
|
|
57
|
+
"description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
|
|
58
|
+
"main": "eslint.config.js",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/Cetec-ERP/Cetec-Design-System.git"
|
|
62
|
+
},
|
|
63
|
+
"author": "Cetec-ERP",
|
|
64
|
+
"license": "ISC",
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/Cetec-ERP/Cetec-Design-System/issues"
|
|
67
|
+
},
|
|
68
|
+
"homepage": "https://github.com/Cetec-ERP/Cetec-Design-System#readme"
|
|
69
|
+
}
|
package/panda.config.ts
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineConfig,
|
|
3
|
+
defineTokens,
|
|
4
|
+
defineSemanticTokens,
|
|
5
|
+
} from '@pandacss/dev';
|
|
6
|
+
import pandaBasePreset from '@pandacss/preset-base';
|
|
7
|
+
import cetecPreset from './src/index';
|
|
8
|
+
import * as tokens from './src/styles/tokens';
|
|
9
|
+
import * as semanticTokens from './src/styles/semanticTokens';
|
|
10
|
+
import { globalCss } from './src/styles/globalStyle';
|
|
11
|
+
import { conditions } from './src/styles/conditions';
|
|
12
|
+
import {
|
|
13
|
+
buttonRecipe,
|
|
14
|
+
iconButtonRecipe,
|
|
15
|
+
inputRecipe,
|
|
16
|
+
textareaRecipe,
|
|
17
|
+
headingRecipe,
|
|
18
|
+
linkRecipe,
|
|
19
|
+
labelRecipe,
|
|
20
|
+
textRecipe,
|
|
21
|
+
checkBoxRecipe,
|
|
22
|
+
spinnerRecipe,
|
|
23
|
+
dividerRecipe,
|
|
24
|
+
preRecipe,
|
|
25
|
+
codeRecipe,
|
|
26
|
+
boxRecipe,
|
|
27
|
+
radioRecipe,
|
|
28
|
+
} from './src/recipes/index';
|
|
29
|
+
|
|
30
|
+
// https://panda-css.com/docs/concepts/extend#removing-something-from-the-base-presets
|
|
31
|
+
// omit default patterns here
|
|
32
|
+
const { box, divider, ...pandaBasePresetPatterns } = pandaBasePreset.patterns;
|
|
33
|
+
const pandaBasePresetConditions = pandaBasePreset.conditions;
|
|
34
|
+
const pandaBasePresetUtilities = pandaBasePreset.utilities;
|
|
35
|
+
const pandaBasePresetGlobalCss = pandaBasePreset.globalCss;
|
|
36
|
+
|
|
37
|
+
// using pandas methods to define type-safe tokens
|
|
38
|
+
export const theme = {
|
|
39
|
+
tokens: defineTokens({
|
|
40
|
+
aspectRatios: tokens.aspectRatios,
|
|
41
|
+
borders: tokens.borders,
|
|
42
|
+
shadows: tokens.shadows,
|
|
43
|
+
easings: tokens.easings,
|
|
44
|
+
durations: tokens.durations,
|
|
45
|
+
letterSpacings: tokens.letterSpacings,
|
|
46
|
+
lineHeights: tokens.lineHeights,
|
|
47
|
+
blurs: tokens.blurs,
|
|
48
|
+
animations: tokens.animations,
|
|
49
|
+
colors: tokens.colors,
|
|
50
|
+
fonts: tokens.fonts,
|
|
51
|
+
fontSizes: tokens.fontSizes,
|
|
52
|
+
fontWeights: tokens.fontWeights,
|
|
53
|
+
sizes: tokens.sizes,
|
|
54
|
+
numericSizes: tokens.numericSizes,
|
|
55
|
+
spacing: tokens.sizes,
|
|
56
|
+
radii: tokens.radii,
|
|
57
|
+
keyframes: tokens.keyframes,
|
|
58
|
+
containerSizes: tokens.containerSizes,
|
|
59
|
+
breakpoints: tokens.breakpoints,
|
|
60
|
+
}),
|
|
61
|
+
semanticTokens: defineSemanticTokens({
|
|
62
|
+
colors: semanticTokens.colors,
|
|
63
|
+
}),
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default defineConfig({
|
|
67
|
+
presets: ['@pandacss/dev/presets', cetecPreset],
|
|
68
|
+
eject: true,
|
|
69
|
+
gitignore: true,
|
|
70
|
+
jsxFramework: 'react',
|
|
71
|
+
jsxStyleProps: 'all',
|
|
72
|
+
jsxFactory: 'styled',
|
|
73
|
+
watch: true,
|
|
74
|
+
include: ['./src/**/*.{js,jsx,ts,tsx}', './pages/**/*.{js,jsx,ts,tsx}'],
|
|
75
|
+
preflight: true,
|
|
76
|
+
exclude: [],
|
|
77
|
+
strictTokens: true,
|
|
78
|
+
importMap: '@styled-system',
|
|
79
|
+
outdir: './styled-system',
|
|
80
|
+
outExtension: 'js',
|
|
81
|
+
theme: {
|
|
82
|
+
containerSizes: tokens.containerSizes,
|
|
83
|
+
keyframes: tokens.keyframes,
|
|
84
|
+
tokens: {
|
|
85
|
+
aspectRatios: theme.tokens.aspectRatios,
|
|
86
|
+
borders: theme.tokens.borders,
|
|
87
|
+
shadows: theme.tokens.shadows,
|
|
88
|
+
easings: theme.tokens.easings,
|
|
89
|
+
durations: theme.tokens.durations,
|
|
90
|
+
letterSpacings: theme.tokens.letterSpacings,
|
|
91
|
+
lineHeights: theme.tokens.lineHeights,
|
|
92
|
+
blurs: theme.tokens.blurs,
|
|
93
|
+
animations: theme.tokens.animations,
|
|
94
|
+
colors: theme.tokens.colors,
|
|
95
|
+
fonts: theme.tokens.fonts,
|
|
96
|
+
fontSizes: theme.tokens.fontSizes,
|
|
97
|
+
fontWeights: theme.tokens.fontWeights,
|
|
98
|
+
sizes: theme.tokens.sizes,
|
|
99
|
+
//numericSizes: theme.tokens.numericSizes,
|
|
100
|
+
spacing: theme.tokens.sizes,
|
|
101
|
+
radii: theme.tokens.radii,
|
|
102
|
+
},
|
|
103
|
+
semanticTokens: {
|
|
104
|
+
colors: theme.semanticTokens.colors,
|
|
105
|
+
},
|
|
106
|
+
extend: {
|
|
107
|
+
breakpoints: theme.tokens.breakpoints,
|
|
108
|
+
textStyles: tokens.textStyles,
|
|
109
|
+
recipes: {
|
|
110
|
+
text: textRecipe,
|
|
111
|
+
heading: headingRecipe,
|
|
112
|
+
link: linkRecipe,
|
|
113
|
+
label: labelRecipe,
|
|
114
|
+
button: buttonRecipe,
|
|
115
|
+
iconButton: iconButtonRecipe,
|
|
116
|
+
input: inputRecipe,
|
|
117
|
+
textarea: textareaRecipe,
|
|
118
|
+
code: codeRecipe,
|
|
119
|
+
pre: preRecipe,
|
|
120
|
+
spinner: spinnerRecipe,
|
|
121
|
+
divider: dividerRecipe,
|
|
122
|
+
box: boxRecipe,
|
|
123
|
+
},
|
|
124
|
+
slotRecipes: {
|
|
125
|
+
checkbox: checkBoxRecipe,
|
|
126
|
+
radio: radioRecipe,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
utilities: {
|
|
132
|
+
...pandaBasePresetUtilities,
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
patterns: {
|
|
136
|
+
icon: {
|
|
137
|
+
properties: {
|
|
138
|
+
size: {
|
|
139
|
+
type: 'enum',
|
|
140
|
+
value: Object.keys(tokens.sizes),
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
transform(props) {
|
|
144
|
+
const { size, ...rest } = props;
|
|
145
|
+
return {
|
|
146
|
+
width: size,
|
|
147
|
+
height: size,
|
|
148
|
+
...rest,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
extend: {
|
|
153
|
+
...pandaBasePresetPatterns,
|
|
154
|
+
container: {
|
|
155
|
+
transform(props) {
|
|
156
|
+
return Object.assign(
|
|
157
|
+
{
|
|
158
|
+
position: 'relative',
|
|
159
|
+
width: '100%',
|
|
160
|
+
maxWidth: '7xl',
|
|
161
|
+
mx: 'auto',
|
|
162
|
+
px: { base: '24', md: '20', sm: '16' },
|
|
163
|
+
},
|
|
164
|
+
props,
|
|
165
|
+
);
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
globalCss: {
|
|
172
|
+
...pandaBasePresetGlobalCss,
|
|
173
|
+
...globalCss,
|
|
174
|
+
html: {
|
|
175
|
+
'--global-font-heading': 'fonts.heading',
|
|
176
|
+
'--global-font-body': 'fonts.body',
|
|
177
|
+
'--global-font-mono': 'fonts.mono',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
conditions: {
|
|
181
|
+
...pandaBasePresetConditions,
|
|
182
|
+
// Core conditions pulled from panda preset-base package
|
|
183
|
+
...conditions,
|
|
184
|
+
|
|
185
|
+
// Themes moved to conditions.tx
|
|
186
|
+
|
|
187
|
+
// States
|
|
188
|
+
indeterminate:
|
|
189
|
+
'&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])',
|
|
190
|
+
hidden: '&:is([hidden])',
|
|
191
|
+
current: '&:is([data-current])',
|
|
192
|
+
today: '&:is([data-today])',
|
|
193
|
+
collapsed:
|
|
194
|
+
'&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|
|
195
|
+
|
|
196
|
+
// Containers
|
|
197
|
+
containerSmall: '@container (max-width: 560px)',
|
|
198
|
+
containerMedium: '@container (min-width: 561px) and (max-width: 999px)',
|
|
199
|
+
containerLarge: '@container (min-width: 1000px)',
|
|
200
|
+
},
|
|
201
|
+
});
|