cetec-design-system 0.0.7 → 0.0.8
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/package.json +2 -2
- package/src/App.tsx +478 -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 +36 -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/TextInput/TextInput.tsx +33 -0
- package/src/components/TextInput/index.tsx +1 -0
- package/src/components/Textarea/Textarea.tsx +36 -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/main.tsx +10 -0
- package/src/recipes/box.ts +16 -0
- package/src/recipes/button.ts +220 -0
- package/src/recipes/checkbox.ts +81 -0
- package/src/recipes/code.ts +37 -0
- package/src/recipes/divider.ts +40 -0
- package/src/recipes/index.ts +12 -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 +193 -0
- package/src/recipes/textarea.ts +78 -0
- package/src/recipes/textinput.ts +76 -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 +90 -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/dist/cetec-components.css +0 -1
- package/dist/cetec-components.es.js +0 -26778
- package/dist/sprite.svg +0 -1
- package/dist/sprite.symbol.html +0 -4091
- package/dist/svgs/Building.svg +0 -1
- package/dist/svgs/aa-placeholder.svg +0 -1
- package/dist/svgs/alarm.svg +0 -1
- package/dist/svgs/apps.svg +0 -1
- package/dist/svgs/arrow-down.svg +0 -1
- package/dist/svgs/arrow-drop-down.svg +0 -1
- package/dist/svgs/arrow-drop-up.svg +0 -1
- package/dist/svgs/arrow-left.svg +0 -1
- package/dist/svgs/arrow-line-down.svg +0 -1
- package/dist/svgs/arrow-line-left.svg +0 -1
- package/dist/svgs/arrow-line-right.svg +0 -1
- package/dist/svgs/arrow-line-up.svg +0 -1
- package/dist/svgs/arrow-prompt.svg +0 -1
- package/dist/svgs/arrow-redo.svg +0 -1
- package/dist/svgs/arrow-right.svg +0 -1
- package/dist/svgs/arrow-square-in.svg +0 -1
- package/dist/svgs/arrow-square-out.svg +0 -1
- package/dist/svgs/arrow-undo.svg +0 -1
- package/dist/svgs/arrow-up.svg +0 -1
- package/dist/svgs/arrows-down-up.svg +0 -1
- package/dist/svgs/arrows-left-right.svg +0 -1
- package/dist/svgs/at.svg +0 -1
- package/dist/svgs/attachment.svg +0 -1
- package/dist/svgs/barcode-reader.svg +0 -1
- package/dist/svgs/barcode.svg +0 -1
- package/dist/svgs/basket.svg +0 -1
- package/dist/svgs/bell-active.svg +0 -1
- package/dist/svgs/bell-slash.svg +0 -1
- package/dist/svgs/bell.svg +0 -1
- package/dist/svgs/bin.svg +0 -1
- package/dist/svgs/bookmark-outlined.svg +0 -1
- package/dist/svgs/bookmark.svg +0 -1
- package/dist/svgs/bookmarks.svg +0 -1
- package/dist/svgs/calendar-add.svg +0 -1
- package/dist/svgs/calendar-view-day.svg +0 -1
- package/dist/svgs/calendar-view-month.svg +0 -1
- package/dist/svgs/calendar-view-week.svg +0 -1
- package/dist/svgs/calendar.svg +0 -1
- package/dist/svgs/caret-down.svg +0 -1
- package/dist/svgs/caret-left.svg +0 -1
- package/dist/svgs/caret-right.svg +0 -1
- package/dist/svgs/caret-up.svg +0 -1
- package/dist/svgs/cart.svg +0 -1
- package/dist/svgs/check-thick.svg +0 -1
- package/dist/svgs/check.svg +0 -1
- package/dist/svgs/checkbox-checked.svg +0 -1
- package/dist/svgs/checkbox-focus.svg +0 -1
- package/dist/svgs/checkbox-indeterminate.svg +0 -1
- package/dist/svgs/checkbox.svg +0 -1
- package/dist/svgs/circle-check.svg +0 -1
- package/dist/svgs/circle.svg +0 -1
- package/dist/svgs/circles-add.svg +0 -1
- package/dist/svgs/clipboard.svg +0 -1
- package/dist/svgs/clock-countdown.svg +0 -1
- package/dist/svgs/clock.svg +0 -1
- package/dist/svgs/cloud-synced.svg +0 -1
- package/dist/svgs/code.svg +0 -1
- package/dist/svgs/color.svg +0 -1
- package/dist/svgs/copy.svg +0 -1
- package/dist/svgs/credit-card.svg +0 -1
- package/dist/svgs/cut.svg +0 -1
- package/dist/svgs/database.svg +0 -1
- package/dist/svgs/devices.svg +0 -1
- package/dist/svgs/dictionary.svg +0 -1
- package/dist/svgs/dots.svg +0 -1
- package/dist/svgs/download-cloud.svg +0 -1
- package/dist/svgs/download.svg +0 -1
- package/dist/svgs/dragger.svg +0 -1
- package/dist/svgs/edit.svg +0 -1
- package/dist/svgs/encrypted.svg +0 -1
- package/dist/svgs/envelope.svg +0 -1
- package/dist/svgs/equal.svg +0 -1
- package/dist/svgs/eraser.svg +0 -1
- package/dist/svgs/error.svg +0 -1
- package/dist/svgs/event-list.svg +0 -1
- package/dist/svgs/export.svg +0 -1
- package/dist/svgs/extension.svg +0 -1
- package/dist/svgs/eye-slash.svg +0 -1
- package/dist/svgs/eye.svg +0 -1
- package/dist/svgs/file-add.svg +0 -1
- package/dist/svgs/file.svg +0 -1
- package/dist/svgs/files.svg +0 -1
- package/dist/svgs/filter-remove.svg +0 -1
- package/dist/svgs/filter.svg +0 -1
- package/dist/svgs/finish.svg +0 -1
- package/dist/svgs/flag.svg +0 -1
- package/dist/svgs/forklift.svg +0 -1
- package/dist/svgs/garage.svg +0 -1
- package/dist/svgs/globe.svg +0 -1
- package/dist/svgs/hash.svg +0 -1
- package/dist/svgs/heart-outlined.svg +0 -1
- package/dist/svgs/heart.svg +0 -1
- package/dist/svgs/help.svg +0 -1
- package/dist/svgs/history.svg +0 -1
- package/dist/svgs/home.svg +0 -1
- package/dist/svgs/image.svg +0 -1
- package/dist/svgs/images.svg +0 -1
- package/dist/svgs/inbox.svg +0 -1
- package/dist/svgs/infinity.svg +0 -1
- package/dist/svgs/info.svg +0 -1
- package/dist/svgs/inventory.svg +0 -1
- package/dist/svgs/invoice.svg +0 -1
- package/dist/svgs/jump-back.svg +0 -1
- package/dist/svgs/jump-forward.svg +0 -1
- package/dist/svgs/kbd-backspace.svg +0 -1
- package/dist/svgs/kbd-capslock.svg +0 -1
- package/dist/svgs/kbd-command.svg +0 -1
- package/dist/svgs/kbd-control.svg +0 -1
- package/dist/svgs/kbd-hide.svg +0 -1
- package/dist/svgs/kbd-option.svg +0 -1
- package/dist/svgs/kbd-return.svg +0 -1
- package/dist/svgs/kbd-shift.svg +0 -1
- package/dist/svgs/kbd-space.svg +0 -1
- package/dist/svgs/kbd.svg +0 -1
- package/dist/svgs/link-slash.svg +0 -1
- package/dist/svgs/link.svg +0 -1
- package/dist/svgs/list-bullets.svg +0 -1
- package/dist/svgs/list-checks.svg +0 -1
- package/dist/svgs/list-numbers.svg +0 -1
- package/dist/svgs/lock-open.svg +0 -1
- package/dist/svgs/lock.svg +0 -1
- package/dist/svgs/map-pin.svg +0 -1
- package/dist/svgs/mark-unread.svg +0 -1
- package/dist/svgs/menu-close.svg +0 -1
- package/dist/svgs/menu.svg +0 -1
- package/dist/svgs/message.svg +0 -1
- package/dist/svgs/messages.svg +0 -1
- package/dist/svgs/minus-thick.svg +0 -1
- package/dist/svgs/minus.svg +0 -1
- package/dist/svgs/money.svg +0 -1
- package/dist/svgs/monitor.svg +0 -1
- package/dist/svgs/moon.svg +0 -1
- package/dist/svgs/note.svg +0 -1
- package/dist/svgs/nut.svg +0 -1
- package/dist/svgs/order.svg +0 -1
- package/dist/svgs/package.svg +0 -1
- package/dist/svgs/page-first.svg +0 -1
- package/dist/svgs/page-last.svg +0 -1
- package/dist/svgs/parts.svg +0 -1
- package/dist/svgs/password.svg +0 -1
- package/dist/svgs/pause.svg +0 -1
- package/dist/svgs/pencil.svg +0 -1
- package/dist/svgs/percent.svg +0 -1
- package/dist/svgs/placeholder.svg +0 -1
- package/dist/svgs/plan.svg +0 -1
- package/dist/svgs/play-pause.svg +0 -1
- package/dist/svgs/play.svg +0 -1
- package/dist/svgs/plus.svg +0 -1
- package/dist/svgs/printer.svg +0 -1
- package/dist/svgs/prohibit.svg +0 -1
- package/dist/svgs/question-mark.svg +0 -1
- package/dist/svgs/quote.svg +0 -1
- package/dist/svgs/radio-checked.svg +0 -1
- package/dist/svgs/radio-focus.svg +0 -1
- package/dist/svgs/radio.svg +0 -1
- package/dist/svgs/receipt.svg +0 -1
- package/dist/svgs/refresh.svg +0 -1
- package/dist/svgs/repeat.svg +0 -1
- package/dist/svgs/reply-all.svg +0 -1
- package/dist/svgs/reply.svg +0 -1
- package/dist/svgs/ribbon.svg +0 -1
- package/dist/svgs/rows-add.svg +0 -1
- package/dist/svgs/rules.svg +0 -1
- package/dist/svgs/search-items.svg +0 -1
- package/dist/svgs/search.svg +0 -1
- package/dist/svgs/send.svg +0 -1
- package/dist/svgs/settings.svg +0 -1
- package/dist/svgs/share.svg +0 -1
- package/dist/svgs/shuffle.svg +0 -1
- package/dist/svgs/skip-back.svg +0 -1
- package/dist/svgs/skip-forward.svg +0 -1
- package/dist/svgs/skull.svg +0 -1
- package/dist/svgs/sliders.svg +0 -1
- package/dist/svgs/sort-alpha-down.svg +0 -1
- package/dist/svgs/sort-alpha-up.svg +0 -1
- package/dist/svgs/sort-ascending.svg +0 -1
- package/dist/svgs/sort-descending.svg +0 -1
- package/dist/svgs/sort-time-down.svg +0 -1
- package/dist/svgs/sort-time-up.svg +0 -1
- package/dist/svgs/square-add.svg +0 -1
- package/dist/svgs/square.svg +0 -1
- package/dist/svgs/stamp.svg +0 -1
- package/dist/svgs/star-outlined.svg +0 -1
- package/dist/svgs/star.svg +0 -1
- package/dist/svgs/start.svg +0 -1
- package/dist/svgs/stop.svg +0 -1
- package/dist/svgs/success.svg +0 -1
- package/dist/svgs/sun.svg +0 -1
- package/dist/svgs/support.svg +0 -1
- package/dist/svgs/sync.svg +0 -1
- package/dist/svgs/tag.svg +0 -1
- package/dist/svgs/target.svg +0 -1
- package/dist/svgs/text-add.svg +0 -1
- package/dist/svgs/time-add.svg +0 -1
- package/dist/svgs/timer.svg +0 -1
- package/dist/svgs/toolbox.svg +0 -1
- package/dist/svgs/tools.svg +0 -1
- package/dist/svgs/trash.svg +0 -1
- package/dist/svgs/trophy.svg +0 -1
- package/dist/svgs/truck-trailer.svg +0 -1
- package/dist/svgs/update.svg +0 -1
- package/dist/svgs/upload-cloud.svg +0 -1
- package/dist/svgs/upload.svg +0 -1
- package/dist/svgs/user-add.svg +0 -1
- package/dist/svgs/user-details.svg +0 -1
- package/dist/svgs/user-group.svg +0 -1
- package/dist/svgs/user-id-badge.svg +0 -1
- package/dist/svgs/user-id-card.svg +0 -1
- package/dist/svgs/user.svg +0 -1
- package/dist/svgs/verified.svg +0 -1
- package/dist/svgs/video.svg +0 -1
- package/dist/svgs/view-cards.svg +0 -1
- package/dist/svgs/view-doc.svg +0 -1
- package/dist/svgs/view-grid.svg +0 -1
- package/dist/svgs/view-rows.svg +0 -1
- package/dist/svgs/view-table.svg +0 -1
- package/dist/svgs/warning.svg +0 -1
- package/dist/svgs/work-order.svg +0 -1
- package/dist/svgs/x.svg +0 -1
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,193 @@
|
|
|
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
|
+
outlineWidth: '2',
|
|
110
|
+
outlineStyle: 'solid',
|
|
111
|
+
outlineColor: 'transparent',
|
|
112
|
+
outlineOffset: '1',
|
|
113
|
+
width: 'fit-content',
|
|
114
|
+
cursor: 'pointer',
|
|
115
|
+
_hover: {
|
|
116
|
+
color: { base: 'blue.40', _dark: 'blue.30' },
|
|
117
|
+
backgroundImage: 'linear-gradient(90deg, currentColor 0% 100%)',
|
|
118
|
+
},
|
|
119
|
+
_focus: {
|
|
120
|
+
borderRadius: '4',
|
|
121
|
+
outlineColor: { base: 'slate.90', _dark: 'slate.0' },
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const linkVariants = {
|
|
126
|
+
...textVariants,
|
|
127
|
+
_disabled: {
|
|
128
|
+
true: {
|
|
129
|
+
cursor: 'not-allowed',
|
|
130
|
+
opacity: 0.4,
|
|
131
|
+
pointerEvents: 'none',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const labelBase = {
|
|
137
|
+
fontSize: '14',
|
|
138
|
+
fontWeight: 'normal',
|
|
139
|
+
lineHeight: 'normal',
|
|
140
|
+
cursor: 'default',
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
//Copied linkvarients, don't have styles defined for this yet
|
|
144
|
+
const labelVariants = {
|
|
145
|
+
...textVariants,
|
|
146
|
+
_disabled: {
|
|
147
|
+
true: {
|
|
148
|
+
cursor: 'not-allowed',
|
|
149
|
+
opacity: 0.7,
|
|
150
|
+
pointerEvents: 'none',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export const textRecipe = defineRecipe({
|
|
156
|
+
className: 'text',
|
|
157
|
+
jsx: ['Text'],
|
|
158
|
+
base: textBase,
|
|
159
|
+
variants: textVariants,
|
|
160
|
+
defaultVariants: {
|
|
161
|
+
textStyle: 'body-md',
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
export const headingRecipe = defineRecipe({
|
|
166
|
+
className: 'heading',
|
|
167
|
+
jsx: ['Heading'],
|
|
168
|
+
base: headingBase,
|
|
169
|
+
variants: headingVariants,
|
|
170
|
+
defaultVariants: {
|
|
171
|
+
level: 'h2',
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export const linkRecipe = defineRecipe({
|
|
176
|
+
className: 'link',
|
|
177
|
+
jsx: ['Link'],
|
|
178
|
+
base: linkBase,
|
|
179
|
+
variants: linkVariants,
|
|
180
|
+
defaultVariants: {
|
|
181
|
+
family: 'body',
|
|
182
|
+
},
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
export const labelRecipe = defineRecipe({
|
|
186
|
+
className: 'label',
|
|
187
|
+
jsx: ['Label'],
|
|
188
|
+
base: labelBase,
|
|
189
|
+
variants: labelVariants,
|
|
190
|
+
defaultVariants: {
|
|
191
|
+
family: 'body',
|
|
192
|
+
},
|
|
193
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
const textareaBase = {
|
|
4
|
+
position: 'relative',
|
|
5
|
+
width: 'full',
|
|
6
|
+
color: { base: 'slate.90', _dark: 'slate.0' },
|
|
7
|
+
borderWidth: '1',
|
|
8
|
+
borderStyle: 'solid',
|
|
9
|
+
borderColor: 'slate.30',
|
|
10
|
+
borderRadius: '4',
|
|
11
|
+
lineHeight: 'tight',
|
|
12
|
+
outlineWidth: '1',
|
|
13
|
+
outlineStyle: 'solid',
|
|
14
|
+
outlineColor: 'transparent',
|
|
15
|
+
resize: 'both',
|
|
16
|
+
_focus: {
|
|
17
|
+
outlineColor: { base: 'slate.90', _dark: 'slate.0' },
|
|
18
|
+
borderColor: { base: 'slate.90', _dark: 'slate.0' },
|
|
19
|
+
},
|
|
20
|
+
_error: {
|
|
21
|
+
display: 'inline-grid',
|
|
22
|
+
borderColor: 'error.default',
|
|
23
|
+
_focus: {
|
|
24
|
+
borderColor: { base: 'error.default', _dark: 'error.default' },
|
|
25
|
+
outlineColor: { base: 'error.default', _dark: 'error.default' },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
_placeholder: {
|
|
29
|
+
color: {
|
|
30
|
+
base: 'slate.50',
|
|
31
|
+
_dark: 'slate.40',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
_disabled: {
|
|
35
|
+
opacity: 0.4,
|
|
36
|
+
},
|
|
37
|
+
'&[data-error]:focus': {
|
|
38
|
+
borderColor: 'error.default',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const textareaVariants = {
|
|
43
|
+
size: {
|
|
44
|
+
small: {
|
|
45
|
+
py: '0',
|
|
46
|
+
px: '8',
|
|
47
|
+
minHeight: '48',
|
|
48
|
+
fontSize: '14',
|
|
49
|
+
},
|
|
50
|
+
medium: {
|
|
51
|
+
py: '3',
|
|
52
|
+
px: '10',
|
|
53
|
+
fontSize: '16',
|
|
54
|
+
minHeight: '64',
|
|
55
|
+
},
|
|
56
|
+
large: {
|
|
57
|
+
py: '7',
|
|
58
|
+
px: '12',
|
|
59
|
+
fontSize: '16',
|
|
60
|
+
minHeight: '80',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
autoSize: {
|
|
64
|
+
true: {
|
|
65
|
+
fieldSizing: 'content',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const textareaRecipe = defineRecipe({
|
|
71
|
+
className: 'textarea',
|
|
72
|
+
jsx: ['Textarea'],
|
|
73
|
+
base: textareaBase,
|
|
74
|
+
variants: textareaVariants,
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
size: 'medium',
|
|
77
|
+
},
|
|
78
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
const textInputVariants = {
|
|
4
|
+
size: {
|
|
5
|
+
medium: {
|
|
6
|
+
py: 3,
|
|
7
|
+
px: 10,
|
|
8
|
+
fontSize: '16',
|
|
9
|
+
},
|
|
10
|
+
small: {
|
|
11
|
+
py: 0,
|
|
12
|
+
px: 8,
|
|
13
|
+
fontSize: '14',
|
|
14
|
+
},
|
|
15
|
+
large: {
|
|
16
|
+
py: 7,
|
|
17
|
+
px: 12,
|
|
18
|
+
fontSize: '16',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
autoSize: {
|
|
22
|
+
true: {
|
|
23
|
+
fieldSizing: 'content',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const textInputBase = {
|
|
29
|
+
position: 'relative',
|
|
30
|
+
width: 'full',
|
|
31
|
+
borderWidth: '1',
|
|
32
|
+
borderColor: 'slate.30',
|
|
33
|
+
borderStyle: 'solid',
|
|
34
|
+
borderRadius: '4',
|
|
35
|
+
lineHeight: 'default',
|
|
36
|
+
fontFamily: 'body',
|
|
37
|
+
outlineWidth: '1',
|
|
38
|
+
outlineStyle: 'solid',
|
|
39
|
+
outlineColor: 'transparent',
|
|
40
|
+
color: {
|
|
41
|
+
base: 'slate.90',
|
|
42
|
+
_dark: 'slate.0',
|
|
43
|
+
},
|
|
44
|
+
_placeholder: {
|
|
45
|
+
color: {
|
|
46
|
+
base: 'slate.50',
|
|
47
|
+
_dark: 'slate.40',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
_disabled: {
|
|
51
|
+
opacity: 0.4,
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
_focus: {
|
|
55
|
+
outlineColor: { base: 'slate.90', _dark: 'slate.0' },
|
|
56
|
+
borderColor: { base: 'slate.90', _dark: 'slate.0' },
|
|
57
|
+
},
|
|
58
|
+
_error: {
|
|
59
|
+
display: 'inline-grid',
|
|
60
|
+
borderColor: 'error.default',
|
|
61
|
+
_focus: {
|
|
62
|
+
borderColor: { base: 'error.default', _dark: 'error.default' },
|
|
63
|
+
outlineColor: { base: 'error.default', _dark: 'error.default' },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const textinputRecipe = defineRecipe({
|
|
69
|
+
className: 'textinput',
|
|
70
|
+
jsx: ['TextInput'],
|
|
71
|
+
base: textInputBase,
|
|
72
|
+
variants: textInputVariants,
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
size: 'medium',
|
|
75
|
+
},
|
|
76
|
+
});
|
|
@@ -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>
|