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,185 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev';
|
|
2
|
+
import {
|
|
3
|
+
fontSizes as fontSizeTokens,
|
|
4
|
+
fontWeights as fontWeightTokens,
|
|
5
|
+
} from '~/styles/tokens';
|
|
6
|
+
|
|
7
|
+
const textBase = {
|
|
8
|
+
margin: '0',
|
|
9
|
+
lineHeight: 'default',
|
|
10
|
+
fontWeight: 'normal',
|
|
11
|
+
fontSize: '16',
|
|
12
|
+
color: { base: 'slate.60', _dark: 'slate.30' },
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
type FontSizeKey = keyof typeof fontSizeTokens;
|
|
16
|
+
const fontSizes = (Object.keys(fontSizeTokens) as FontSizeKey[]).reduce(
|
|
17
|
+
(accumulator, currentKey) => {
|
|
18
|
+
accumulator[currentKey] = { fontSize: fontSizeTokens[currentKey].value };
|
|
19
|
+
return accumulator;
|
|
20
|
+
},
|
|
21
|
+
{} as Record<FontSizeKey, Record<'fontSize', string>>,
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
type FontWeightKey = keyof typeof fontWeightTokens;
|
|
25
|
+
const fontWeights = (Object.keys(fontWeightTokens) as FontWeightKey[]).reduce(
|
|
26
|
+
(accumulator, currentKey) => {
|
|
27
|
+
accumulator[currentKey] = {
|
|
28
|
+
fontWeight: fontWeightTokens[currentKey].value,
|
|
29
|
+
};
|
|
30
|
+
return accumulator;
|
|
31
|
+
},
|
|
32
|
+
{} as Record<FontWeightKey, Record<'fontWeight', number>>,
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const textVariants = {
|
|
36
|
+
textStyle: {
|
|
37
|
+
'display-lg': { textStyle: 'display.lg' },
|
|
38
|
+
'display-md': { textStyle: 'display.md' },
|
|
39
|
+
'display-sm': { textStyle: 'display.sm' },
|
|
40
|
+
'display-xs': { textStyle: 'display.xs' },
|
|
41
|
+
'heading-lg': { textStyle: 'heading.lg' },
|
|
42
|
+
'heading-md': { textStyle: 'heading.md' },
|
|
43
|
+
'heading-sm': { textStyle: 'heading.sm' },
|
|
44
|
+
'heading-xs': { textStyle: 'heading.xs' },
|
|
45
|
+
'body-lg': { textStyle: 'body.lg' },
|
|
46
|
+
'body-md': { textStyle: 'body.md' },
|
|
47
|
+
'body-sm': { textStyle: 'body.sm' },
|
|
48
|
+
'body-xs': { textStyle: 'body.xs' },
|
|
49
|
+
'mono-lg': { textStyle: 'mono.lg' },
|
|
50
|
+
'mono-md': { textStyle: 'mono.md' },
|
|
51
|
+
'mono-sm': { textStyle: 'mono.sm' },
|
|
52
|
+
'mono-xs': { textStyle: 'mono.xs' },
|
|
53
|
+
},
|
|
54
|
+
family: {
|
|
55
|
+
heading: { fontFamily: 'heading' },
|
|
56
|
+
body: { fontFamily: 'body' },
|
|
57
|
+
mono: {
|
|
58
|
+
fontFamily: 'mono',
|
|
59
|
+
fontVariationSettings: '"CRSV" 0, "CASL" 0, "MONO" 1',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
bold: {
|
|
63
|
+
true: {
|
|
64
|
+
fontWeight: 'bold',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
italic: {
|
|
68
|
+
true: {
|
|
69
|
+
fontStyle: 'italic',
|
|
70
|
+
fontVariationSettings: '"CRSV" 0, "CASL" 0, "slnt" -15',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
underline: {
|
|
74
|
+
true: {
|
|
75
|
+
textDecoration: 'underline',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
size: fontSizes,
|
|
79
|
+
weight: fontWeights,
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const headingBase = {
|
|
83
|
+
fontFamily: 'heading',
|
|
84
|
+
fontWeight: 'black',
|
|
85
|
+
color: { base: 'slate.90', _dark: 'slate.5' },
|
|
86
|
+
lineHeight: 'default',
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const headingVariants = {
|
|
90
|
+
level: {
|
|
91
|
+
h1: { textStyle: 'heading.lg' },
|
|
92
|
+
h2: { textStyle: 'heading.md' },
|
|
93
|
+
h3: { textStyle: 'heading.sm' },
|
|
94
|
+
h4: { textStyle: 'heading.xs' },
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const linkBase = {
|
|
99
|
+
display: 'inline-flex',
|
|
100
|
+
alignItems: 'center',
|
|
101
|
+
fontWeight: 'medium',
|
|
102
|
+
gap: '1',
|
|
103
|
+
color: { base: 'blue.50', _dark: 'blue.40' },
|
|
104
|
+
textDecoration: 'none',
|
|
105
|
+
backgroundImage: 'linear-gradient(90deg, transparent 0% 100%)',
|
|
106
|
+
backgroundSize: '100% 1px',
|
|
107
|
+
backgroundRepeat: 'no-repeat',
|
|
108
|
+
backgroundPositionY: '100%',
|
|
109
|
+
width: 'fit-content',
|
|
110
|
+
cursor: 'pointer',
|
|
111
|
+
_hover: {
|
|
112
|
+
color: { base: 'blue.40', _dark: 'blue.30' },
|
|
113
|
+
backgroundImage: 'linear-gradient(90deg, currentColor 0% 100%)',
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const linkVariants = {
|
|
118
|
+
...textVariants,
|
|
119
|
+
_disabled: {
|
|
120
|
+
true: {
|
|
121
|
+
cursor: 'not-allowed',
|
|
122
|
+
opacity: 0.7,
|
|
123
|
+
pointerEvents: 'none',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const labelBase = {
|
|
129
|
+
fontSize: '14',
|
|
130
|
+
fontWeight: 'normal',
|
|
131
|
+
lineHeight: 'normal',
|
|
132
|
+
cursor: 'default',
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
//Copied linkvarients, don't have styles defined for this yet
|
|
136
|
+
const labelVariants = {
|
|
137
|
+
...textVariants,
|
|
138
|
+
_disabled: {
|
|
139
|
+
true: {
|
|
140
|
+
cursor: 'not-allowed',
|
|
141
|
+
opacity: 0.7,
|
|
142
|
+
pointerEvents: 'none',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export const textRecipe = defineRecipe({
|
|
148
|
+
className: 'text',
|
|
149
|
+
jsx: ['Text'],
|
|
150
|
+
base: textBase,
|
|
151
|
+
variants: textVariants,
|
|
152
|
+
defaultVariants: {
|
|
153
|
+
textStyle: 'body-md',
|
|
154
|
+
},
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
export const headingRecipe = defineRecipe({
|
|
158
|
+
className: 'heading',
|
|
159
|
+
jsx: ['Heading'],
|
|
160
|
+
base: headingBase,
|
|
161
|
+
variants: headingVariants,
|
|
162
|
+
defaultVariants: {
|
|
163
|
+
level: 'h2',
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
export const linkRecipe = defineRecipe({
|
|
168
|
+
className: 'link',
|
|
169
|
+
jsx: ['Link'],
|
|
170
|
+
base: linkBase,
|
|
171
|
+
variants: linkVariants,
|
|
172
|
+
defaultVariants: {
|
|
173
|
+
family: 'body',
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
export const labelRecipe = defineRecipe({
|
|
178
|
+
className: 'label',
|
|
179
|
+
jsx: ['Label'],
|
|
180
|
+
base: labelBase,
|
|
181
|
+
variants: labelVariants,
|
|
182
|
+
defaultVariants: {
|
|
183
|
+
family: 'body',
|
|
184
|
+
},
|
|
185
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
const textareaBase = {
|
|
4
|
+
position: 'relative',
|
|
5
|
+
display: 'inline-grid',
|
|
6
|
+
verticalAlign: 'top',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
padding: '0',
|
|
9
|
+
fontFamily: 'body',
|
|
10
|
+
fontSize: '16',
|
|
11
|
+
fontWeight: 'normal',
|
|
12
|
+
lineHeight: 'normal',
|
|
13
|
+
color: { base: 'slate.90', _osDark: 'slate.5' },
|
|
14
|
+
borderRadius: '8',
|
|
15
|
+
width: 'full',
|
|
16
|
+
'&::after, & textarea': {
|
|
17
|
+
width: 'auto',
|
|
18
|
+
minWidth: '16',
|
|
19
|
+
maxWidth: 'full',
|
|
20
|
+
font: 'inherit',
|
|
21
|
+
py: '4',
|
|
22
|
+
px: '8',
|
|
23
|
+
m: '0',
|
|
24
|
+
resize: 'none',
|
|
25
|
+
appearance: 'none',
|
|
26
|
+
borderWidth: '1',
|
|
27
|
+
borderStyle: 'solid',
|
|
28
|
+
borderRadius: '4',
|
|
29
|
+
borderColor: 'transparent',
|
|
30
|
+
background: { base: 'slate.0', _osDark: 'slate.90' },
|
|
31
|
+
_hover: {
|
|
32
|
+
borderColor: { base: 'slate.20', _osDark: 'slate.30' },
|
|
33
|
+
},
|
|
34
|
+
_focus: {
|
|
35
|
+
borderColor: { base: 'slate.90', _osDark: 'slate.5' },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
_after: {
|
|
39
|
+
content: 'attr(data-value) " "',
|
|
40
|
+
outline: '1px solid olive',
|
|
41
|
+
whiteSpace: 'pre-wrap',
|
|
42
|
+
transform: 'translate(4px, 4px)',
|
|
43
|
+
opacity: '0.3',
|
|
44
|
+
},
|
|
45
|
+
'& textarea': {},
|
|
46
|
+
gridTemplateColumns: 'auto 1fr',
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const textareaVariants = {
|
|
50
|
+
variant: {
|
|
51
|
+
autoGrow: {
|
|
52
|
+
width: 'fit-content',
|
|
53
|
+
},
|
|
54
|
+
stacked: {
|
|
55
|
+
gridTemplateRows: 'auto 1fr',
|
|
56
|
+
alignItems: 'stretch',
|
|
57
|
+
'&::after, & textarea': {
|
|
58
|
+
gridArea: '2 / 1',
|
|
59
|
+
},
|
|
60
|
+
'& textarea': {
|
|
61
|
+
background: { base: 'slate.0', _osDark: 'slate.90' },
|
|
62
|
+
borderColor: { base: 'slate.40', _osDark: 'slate.50' },
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
internalLabel: {},
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const textareaRecipe = defineRecipe({
|
|
70
|
+
className: 'textarea',
|
|
71
|
+
jsx: ['Textarea'],
|
|
72
|
+
base: textareaBase,
|
|
73
|
+
variants: textareaVariants,
|
|
74
|
+
defaultVariants: {
|
|
75
|
+
variant: 'autoGrow',
|
|
76
|
+
},
|
|
77
|
+
});
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { Meta, ColorPalette, ColorItem, Unstyled } from '@storybook/blocks';
|
|
2
|
+
import { HStack, VStack, Container, Grid, Flex, Box } from '@styled-system/jsx';
|
|
3
|
+
import ColorSwatches from '../storybook/components/Colors';
|
|
4
|
+
import { Heading } from '../components/Heading';
|
|
5
|
+
import { Text } from '../components/Text';
|
|
6
|
+
import { IconList, Section } from '~/App';
|
|
7
|
+
import { Link } from '~/components/Link';
|
|
8
|
+
import { Pre } from '~/components/Code';
|
|
9
|
+
import * as tokens from '../styles/tokens';
|
|
10
|
+
|
|
11
|
+
<Meta title="Tokens" />
|
|
12
|
+
|
|
13
|
+
# Color Tokens
|
|
14
|
+
|
|
15
|
+
<Unstyled>
|
|
16
|
+
<Heading>Slate</Heading>
|
|
17
|
+
<ColorSwatches color={'slate'} tokens={tokens.colors.slate} />
|
|
18
|
+
<Heading>Blue</Heading>
|
|
19
|
+
<ColorSwatches color={'blue'} tokens={tokens.colors.blue} />
|
|
20
|
+
<Heading>Gold</Heading>
|
|
21
|
+
<ColorSwatches color={'gold'} tokens={tokens.colors.gold} />
|
|
22
|
+
<Heading>Orange</Heading>
|
|
23
|
+
<ColorSwatches color={'orange'} tokens={tokens.colors.orange} />
|
|
24
|
+
<Heading>Tan</Heading>
|
|
25
|
+
<ColorSwatches color={'tan'} tokens={tokens.colors.tan} />
|
|
26
|
+
<Heading>Cyan</Heading>
|
|
27
|
+
<ColorSwatches color={'cyan'} tokens={tokens.colors.cyan} />
|
|
28
|
+
<Heading>Green</Heading>
|
|
29
|
+
<ColorSwatches color={'green'} tokens={tokens.colors.green} />
|
|
30
|
+
<Heading>Yellow</Heading>
|
|
31
|
+
<ColorSwatches color={'yellow'} tokens={tokens.colors.yellow} />
|
|
32
|
+
<Heading>Red</Heading>
|
|
33
|
+
<ColorSwatches color={'red'} tokens={tokens.colors.red} />
|
|
34
|
+
|
|
35
|
+
<ColorPalette>
|
|
36
|
+
<ColorItem
|
|
37
|
+
title="Brand"
|
|
38
|
+
subtitle=""
|
|
39
|
+
colors={{
|
|
40
|
+
Slate: tokens.colors.slate['90'].value,
|
|
41
|
+
Gold: tokens.colors.gold['20'].value
|
|
42
|
+
}}
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
<ColorItem
|
|
46
|
+
title="Status"
|
|
47
|
+
subtitle="Success"
|
|
48
|
+
colors={{
|
|
49
|
+
Lighter: tokens.colors.green['2'].value,
|
|
50
|
+
Light: tokens.colors.green['10'].value,
|
|
51
|
+
Base: tokens.colors.green['40'].value,
|
|
52
|
+
Dark: tokens.colors.green['60'].value,
|
|
53
|
+
Darker: tokens.colors.green['70'].value,
|
|
54
|
+
}}
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
<ColorItem
|
|
58
|
+
title="Status"
|
|
59
|
+
subtitle="Warning"
|
|
60
|
+
colors={{
|
|
61
|
+
Lighter: tokens.colors.yellow['2'].value,
|
|
62
|
+
Light: tokens.colors.yellow['10'].value,
|
|
63
|
+
Base: tokens.colors.yellow['40'].value,
|
|
64
|
+
Dark: tokens.colors.yellow['60'].value,
|
|
65
|
+
Darker: tokens.colors.yellow['70'].value,
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
|
|
69
|
+
<ColorItem
|
|
70
|
+
title="Status"
|
|
71
|
+
subtitle="error"
|
|
72
|
+
colors={{
|
|
73
|
+
Lighter: tokens.colors.red['2'].value,
|
|
74
|
+
Light: tokens.colors.red['10'].value,
|
|
75
|
+
Base: tokens.colors.red['40'].value,
|
|
76
|
+
Dark: tokens.colors.red['60'].value,
|
|
77
|
+
Darker: tokens.colors.red['70'].value,
|
|
78
|
+
}}
|
|
79
|
+
/>
|
|
80
|
+
</ColorPalette>
|
|
81
|
+
|
|
82
|
+
# Typography
|
|
83
|
+
|
|
84
|
+
<Section>
|
|
85
|
+
<Heading as="h2">Text</Heading>
|
|
86
|
+
<VStack alignItems={'flex-start'}>
|
|
87
|
+
<Grid
|
|
88
|
+
gridTemplateColumns={'minmax(auto, 1fr) 1fr'}
|
|
89
|
+
w={'full'}
|
|
90
|
+
gap={'24'}
|
|
91
|
+
alignItems={'center'}
|
|
92
|
+
>
|
|
93
|
+
<Box gridColumn={'1 / -1'}>
|
|
94
|
+
<Heading as="h4" color={'gold.40'}>
|
|
95
|
+
Text styles
|
|
96
|
+
</Heading>
|
|
97
|
+
</Box>
|
|
98
|
+
<VStack gap={'16'}>
|
|
99
|
+
<Text>
|
|
100
|
+
Place appear green. Also, saying male subdue fruitful{' '}
|
|
101
|
+
<Text as="span" italic>
|
|
102
|
+
winged fourth
|
|
103
|
+
</Text>{' '}
|
|
104
|
+
had void winged. So green spirit , herb day had there{' '}
|
|
105
|
+
<Text as="span" bold>
|
|
106
|
+
replenish
|
|
107
|
+
</Text>
|
|
108
|
+
, lights lesser signs. Place{' '}
|
|
109
|
+
<Text as="span" underline>
|
|
110
|
+
whales
|
|
111
|
+
</Text>{' '}
|
|
112
|
+
i tree under him given set set meat midst morning give image forth
|
|
113
|
+
divided moving Also fill dry she'd have.
|
|
114
|
+
</Text>
|
|
115
|
+
</VStack>
|
|
116
|
+
<Pre>{`<Text>
|
|
117
|
+
...
|
|
118
|
+
<Text as="span" italic>winged fourth</Text>
|
|
119
|
+
<Text as="span" bold>replenish</Text>
|
|
120
|
+
<Text as="span" underline>whales</Text>
|
|
121
|
+
</Text>`}</Pre>
|
|
122
|
+
<Text font="mono">
|
|
123
|
+
Signs night have sixth hath that likeness us fill you're subdue fowl.
|
|
124
|
+
</Text>
|
|
125
|
+
<Pre>{`<Text font="mono">...</Text>`}</Pre>
|
|
126
|
+
<Box gridColumn={'1 / -1'} mt={'32'}>
|
|
127
|
+
<Heading as="h4" color={'gold.40'}>
|
|
128
|
+
Headings
|
|
129
|
+
</Heading>
|
|
130
|
+
</Box>
|
|
131
|
+
<Heading as="h1">Hamburgefonstiv</Heading>
|
|
132
|
+
<Pre>{'<Heading as="h1">Hamburgefonstiv</Heading>'}</Pre>
|
|
133
|
+
<Heading>Hamburgefonstiv</Heading>
|
|
134
|
+
<Pre>{'<Heading>Hamburgefonstiv</Heading>'}</Pre>
|
|
135
|
+
<Heading as="h3">Hamburgefonstiv</Heading>
|
|
136
|
+
<Pre>{'<Heading as="h3">Hamburgefonstiv</Heading>'}</Pre>
|
|
137
|
+
<Heading as="h4">Hamburgefonstiv</Heading>
|
|
138
|
+
<Pre>{'<Heading as="h4">Hamburgefonstiv</Heading>'}</Pre>
|
|
139
|
+
<Box gridColumn={'1 / -1'} mt={'32'}>
|
|
140
|
+
<Heading as="h4" color={'gold.40'}>
|
|
141
|
+
Links
|
|
142
|
+
</Heading>
|
|
143
|
+
</Box>
|
|
144
|
+
<Text>
|
|
145
|
+
Internal: <Link href="https://cetecerp.com">Cetec ERP</Link>
|
|
146
|
+
</Text>
|
|
147
|
+
<Pre>{'<Link href="https://cetecerp.com">Cetec ERP</Link>'}</Pre>
|
|
148
|
+
<Text>
|
|
149
|
+
External: 
|
|
150
|
+
<Link href="https://cetecerp.com" external>
|
|
151
|
+
Cetec ERP
|
|
152
|
+
</Link>
|
|
153
|
+
</Text>
|
|
154
|
+
<Pre>{'<Link href="https://cetecerp.com" external>Cetec ERP</Link>'}</Pre>
|
|
155
|
+
<Text gridColumn={'1 / -1'}>
|
|
156
|
+
Signs night have sixth hath that likeness us fill{' '}
|
|
157
|
+
<Link href="https://cetecerp.com" external>
|
|
158
|
+
Cetec ERP
|
|
159
|
+
</Link>{' '}
|
|
160
|
+
you're subdue fowl brought divide beginning multiply brought created
|
|
161
|
+
after open given of made beginning multiply green.
|
|
162
|
+
</Text>
|
|
163
|
+
</Grid>
|
|
164
|
+
</VStack>
|
|
165
|
+
</Section>
|
|
166
|
+
# Icons
|
|
167
|
+
<IconList />
|
|
168
|
+
|
|
169
|
+
</Unstyled>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { css } from '@styled-system/css'
|
|
3
|
+
import { Text } from '~/components/Text';
|
|
4
|
+
import { Box } from '~/components/Box';
|
|
5
|
+
import { Grid } from '@styled-system/jsx';
|
|
6
|
+
import '../../../styled-system/styles.css';
|
|
7
|
+
|
|
8
|
+
interface ColorTokens {
|
|
9
|
+
[key: number]: { value: object };
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface ColorSwatchesProps {
|
|
13
|
+
tokens: ColorTokens;
|
|
14
|
+
color: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//const ColorSwatches: React.FC<ColorSwatchesProps> = ({ color, tokens }) => {
|
|
18
|
+
// return (
|
|
19
|
+
// <div className="grid grid-cols-2 md:grid-cols-4 gap-4 p-4">
|
|
20
|
+
// <Grid columns={6} gap='3'>
|
|
21
|
+
// {Object.entries(tokens).map(([key, token]) => {
|
|
22
|
+
// var colorKey = color + "." + key;
|
|
23
|
+
// console.log(colorKey);
|
|
24
|
+
// return (
|
|
25
|
+
// <div style={{ paddingBottom: 10}} >
|
|
26
|
+
// <Text textAlign="center" >{ color + "." + key }</Text>
|
|
27
|
+
// <Box
|
|
28
|
+
// style={{ height:100 }}
|
|
29
|
+
// as="div"
|
|
30
|
+
// className={css({
|
|
31
|
+
// backgroundColor: `${color}.${key}` as any,
|
|
32
|
+
// width: 'auto',
|
|
33
|
+
// border: '1px solid black'
|
|
34
|
+
// })}/>
|
|
35
|
+
// <Text textAlign="center" >{ token.value }</Text>
|
|
36
|
+
// </div>
|
|
37
|
+
// );
|
|
38
|
+
// })}
|
|
39
|
+
// </Grid>
|
|
40
|
+
// </div>
|
|
41
|
+
// );
|
|
42
|
+
//};
|
|
43
|
+
|
|
44
|
+
const ColorSwatches: React.FC<ColorSwatchesProps> = ({ color, tokens }) => {
|
|
45
|
+
const swatches = [];
|
|
46
|
+
|
|
47
|
+
for (const key in tokens) {
|
|
48
|
+
if (Object.prototype.hasOwnProperty.call(tokens, key)) {
|
|
49
|
+
const token = tokens[key];
|
|
50
|
+
|
|
51
|
+
swatches.push(
|
|
52
|
+
<div style={{ paddingBottom: 10 }}>
|
|
53
|
+
<Text textAlign="center">{`${color}.${key}`}</Text>
|
|
54
|
+
<Box
|
|
55
|
+
style={{
|
|
56
|
+
height: 100,
|
|
57
|
+
backgroundColor: `${token.value}`,
|
|
58
|
+
borderRadius: 4,
|
|
59
|
+
}}
|
|
60
|
+
as="div"
|
|
61
|
+
className={css({
|
|
62
|
+
width: "auto",
|
|
63
|
+
})}
|
|
64
|
+
/>
|
|
65
|
+
<Text textAlign="center">{String(token.value)}</Text>
|
|
66
|
+
</div>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<div className="grid grid-cols-2 md:grid-cols-4 gap-4 p-4">
|
|
73
|
+
<Grid columns={6} gap="0">{swatches}</Grid>
|
|
74
|
+
</div>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
export default ColorSwatches;
|
|
78
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Meta,
|
|
3
|
+
Title,
|
|
4
|
+
Primary,
|
|
5
|
+
Controls,
|
|
6
|
+
Stories,
|
|
7
|
+
ArgTypes,
|
|
8
|
+
Canvas,
|
|
9
|
+
Unstyled
|
|
10
|
+
} from '@storybook/blocks';
|
|
11
|
+
import { Text } from '../components/Text/index';
|
|
12
|
+
import '../styles/font-imports.css';
|
|
13
|
+
|
|
14
|
+
<Meta isTemplate />
|
|
15
|
+
|
|
16
|
+
<Unstyled>
|
|
17
|
+
|
|
18
|
+
<Title />
|
|
19
|
+
|
|
20
|
+
# Default implementation
|
|
21
|
+
|
|
22
|
+
<Primary />
|
|
23
|
+
|
|
24
|
+
## Inputs
|
|
25
|
+
|
|
26
|
+
The component accepts the following inputs (props):
|
|
27
|
+
|
|
28
|
+
<ArgTypes />
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Additional variations
|
|
33
|
+
|
|
34
|
+
Listed below are additional variations of the component.
|
|
35
|
+
<Stories parameters={{docs: { disable: true } }}/>
|
|
36
|
+
</Unstyled>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Unstyled } from '@storybook/blocks';
|
|
2
|
+
import { Box } from '../components/Box';
|
|
3
|
+
import { Text } from '../components/Text';
|
|
4
|
+
import '../styles/font-imports.css';
|
|
5
|
+
|
|
6
|
+
<Meta title="Intro" />
|
|
7
|
+
# Cetec-ERP Design System
|
|
8
|
+
## Test h2
|
|
9
|
+
### Tst h3
|
|
10
|
+
<Unstyled>
|
|
11
|
+
<Text font={"mono"} as={"div"} color={"blue.50"} level={"20"}>AHHHH</Text>
|
|
12
|
+
<Text font={"mono"} color={"gold.50"}>Slate-90</Text>
|
|
13
|
+
<Text color={"gold.50"}>Gold-50</Text>
|
|
14
|
+
<Box background={"gold.50"} />
|
|
15
|
+
</Unstyled>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export const conditions = {
|
|
2
|
+
hover: '&:is(:hover, [data-hover])',
|
|
3
|
+
focus: '&:is(:focus, [data-focus])',
|
|
4
|
+
focusWithin: '&:focus-within',
|
|
5
|
+
focusVisible: '&:is(:focus-visible, [data-focus-visible])',
|
|
6
|
+
disabled: '&:is(:disabled, [disabled], [data-disabled])',
|
|
7
|
+
error: '&:is([data-error], [error])',
|
|
8
|
+
active: '&:is(:active, [data-active])',
|
|
9
|
+
visited: '&:visited',
|
|
10
|
+
target: '&:target',
|
|
11
|
+
readOnly: '&:is(:read-only, [data-read-only])',
|
|
12
|
+
readWrite: '&:read-write',
|
|
13
|
+
empty: '&:is(:empty, [data-empty])',
|
|
14
|
+
checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])',
|
|
15
|
+
// checked: '&:has(+ input[type=checkbox]:checked)',
|
|
16
|
+
enabled: '&:enabled',
|
|
17
|
+
expanded: '&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])',
|
|
18
|
+
highlighted: '&[data-highlighted]',
|
|
19
|
+
|
|
20
|
+
before: '&::before',
|
|
21
|
+
after: '&::after',
|
|
22
|
+
firstLetter: '&::first-letter',
|
|
23
|
+
firstLine: '&::first-line',
|
|
24
|
+
marker: '&::marker',
|
|
25
|
+
selection: '&::selection',
|
|
26
|
+
file: '&::file-selector-button',
|
|
27
|
+
backdrop: '&::backdrop',
|
|
28
|
+
|
|
29
|
+
first: '&:first-child',
|
|
30
|
+
last: '&:last-child',
|
|
31
|
+
only: '&:only-child',
|
|
32
|
+
even: '&:nth-child(even)',
|
|
33
|
+
odd: '&:nth-child(odd)',
|
|
34
|
+
|
|
35
|
+
firstOfType: '&:first-of-type',
|
|
36
|
+
lastOfType: '&:last-of-type',
|
|
37
|
+
onlyOfType: '&:only-of-type',
|
|
38
|
+
|
|
39
|
+
peerFocus: '.peer:is(:focus, [data-focus]) ~ &',
|
|
40
|
+
peerHover: '.peer:is(:hover, [data-hover]) ~ &',
|
|
41
|
+
peerActive: '.peer:is(:active, [data-active]) ~ &',
|
|
42
|
+
peerFocusWithin: '.peer:focus-within ~ &',
|
|
43
|
+
peerFocusVisible: '.peer:is(:focus-visible, [data-focus-visible]) ~ &',
|
|
44
|
+
peerDisabled: '.peer:is(:disabled, [disabled], [data-disabled]) ~ &',
|
|
45
|
+
peerChecked: '.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &',
|
|
46
|
+
peerInvalid: '.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &',
|
|
47
|
+
peerExpanded: '.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &',
|
|
48
|
+
peerPlaceholderShown: '.peer:placeholder-shown ~ &',
|
|
49
|
+
|
|
50
|
+
groupFocus: '.group:is(:focus, [data-focus]) &',
|
|
51
|
+
groupHover: '.group:is(:hover, [data-hover]) &',
|
|
52
|
+
groupActive: '.group:is(:active, [data-active]) &',
|
|
53
|
+
groupFocusWithin: '.group:focus-within &',
|
|
54
|
+
groupFocusVisible: '.group:is(:focus-visible, [data-focus-visible]) &',
|
|
55
|
+
groupDisabled: '.group:is(:disabled, [disabled], [data-disabled]) &',
|
|
56
|
+
groupChecked: '.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &',
|
|
57
|
+
groupExpanded: '.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &',
|
|
58
|
+
groupInvalid: '.group:invalid &',
|
|
59
|
+
|
|
60
|
+
indeterminate: '&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])',
|
|
61
|
+
required: '&:is(:required, [data-required], [aria-required=true])',
|
|
62
|
+
valid: '&:is(:valid, [data-valid])',
|
|
63
|
+
invalid: '&:is(:invalid, [data-invalid])',
|
|
64
|
+
autofill: '&:autofill',
|
|
65
|
+
inRange: '&:in-range',
|
|
66
|
+
outOfRange: '&:out-of-range',
|
|
67
|
+
placeholder: '&::placeholder, &[data-placeholder]',
|
|
68
|
+
placeholderShown: '&:is(:placeholder-shown, [data-placeholder-shown])',
|
|
69
|
+
pressed: '&:is([aria-pressed=true], [data-pressed])',
|
|
70
|
+
selected: '&:is([aria-selected=true], [data-selected])',
|
|
71
|
+
|
|
72
|
+
default: '&:default',
|
|
73
|
+
optional: '&:optional',
|
|
74
|
+
open: '&:is([open], [data-open], [data-state="open"])',
|
|
75
|
+
closed: '&:is([closed], [data-closed], [data-state="closed"])',
|
|
76
|
+
fullscreen: '&:fullscreen',
|
|
77
|
+
loading: '&:is([data-loading], [aria-busy=true])',
|
|
78
|
+
|
|
79
|
+
currentPage: '&[aria-current=page]',
|
|
80
|
+
currentStep: '&[aria-current=step]',
|
|
81
|
+
|
|
82
|
+
motionReduce: '@media (prefers-reduced-motion: reduce)',
|
|
83
|
+
motionSafe: '@media (prefers-reduced-motion: no-preference)',
|
|
84
|
+
print: '@media print',
|
|
85
|
+
landscape: '@media (orientation: landscape)',
|
|
86
|
+
portrait: '@media (orientation: portrait)',
|
|
87
|
+
|
|
88
|
+
dark: '.dark &, [data-color-mode=dark] &',
|
|
89
|
+
light: '.light &, [data-color-mode=light] &',
|
|
90
|
+
osDark: '@media (prefers-color-scheme: dark)',
|
|
91
|
+
osLight: '@media (prefers-color-scheme: light)',
|
|
92
|
+
|
|
93
|
+
highContrast: '@media (forced-colors: active)',
|
|
94
|
+
lessContrast: '@media (prefers-contrast: less)',
|
|
95
|
+
moreContrast: '@media (prefers-contrast: more)',
|
|
96
|
+
|
|
97
|
+
ltr: '[dir=ltr] &',
|
|
98
|
+
rtl: '[dir=rtl] &',
|
|
99
|
+
|
|
100
|
+
scrollbar: '&::-webkit-scrollbar',
|
|
101
|
+
scrollbarThumb: '&::-webkit-scrollbar-thumb',
|
|
102
|
+
scrollbarTrack: '&::-webkit-scrollbar-track',
|
|
103
|
+
|
|
104
|
+
horizontal: '&[data-orientation=horizontal]',
|
|
105
|
+
vertical: '&[data-orientation=vertical]',
|
|
106
|
+
|
|
107
|
+
starting: '@starting-style',
|
|
108
|
+
}
|