@kaizen/components 1.4.13 → 1.4.15
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/CHANGELOG.md +19 -0
- package/dist/ExampleComponent-9afabffa.d.ts +3 -0
- package/dist/ExampleComponent.module-4G6FO336.scss +3 -0
- package/dist/{types/KaizenProvider → KaizenProvider}/ThemeProvider/ThemeManager.d.ts +5 -2
- package/dist/KaizenProvider/ThemeProvider/ThemeManager.js +6 -0
- package/dist/KaizenProvider/ThemeProvider/ThemeManager.spec.d.ts +2 -0
- package/dist/KaizenProvider/ThemeProvider/ThemeManager.spec.js +21 -0
- package/dist/KaizenProvider/ThemeProvider/index.d.ts +16 -0
- package/dist/KaizenProvider/ThemeProvider/index.js +14 -0
- package/dist/KaizenProvider/index.d.ts +4 -0
- package/dist/KaizenProvider/index.js +8 -0
- package/dist/KaizenProvider-af031107.d.ts +13 -0
- package/dist/__future__/ExampleComponent/index.d.ts +1 -0
- package/dist/__future__/ExampleComponent/index.js +6 -0
- package/dist/__future__/index.d.ts +3 -0
- package/dist/__future__/index.js +10 -0
- package/dist/chunk-GOA67MI6.js +8 -0
- package/dist/chunk-HO4BDPVX.js +15 -0
- package/dist/chunk-J42JQYBY.js +57 -0
- package/dist/chunk-RZK3BIEO.js +89 -0
- package/dist/esm/ExampleComponent.module-4G6FO336.scss +3 -0
- package/dist/esm/KaizenProvider/ThemeProvider/ThemeManager.js +6 -0
- package/dist/esm/KaizenProvider/ThemeProvider/ThemeManager.spec.js +21 -0
- package/dist/esm/KaizenProvider/ThemeProvider/index.js +14 -0
- package/dist/esm/KaizenProvider/index.js +8 -0
- package/dist/esm/__future__/ExampleComponent/index.js +6 -0
- package/dist/esm/__future__/index.js +10 -0
- package/dist/esm/chunk-GOA67MI6.js +8 -0
- package/dist/esm/chunk-HO4BDPVX.js +15 -0
- package/dist/esm/chunk-J42JQYBY.js +57 -0
- package/dist/esm/chunk-RZK3BIEO.js +89 -0
- package/dist/{types/index.d.ts → esm/index.js} +26 -4
- package/dist/iife/ActionButton.module-LHTIA2D3.scss +10 -0
- package/dist/iife/Avatar.module-GUG7HXMZ.scss +165 -0
- package/dist/iife/AvatarGroup.module-QAVTI4PR.scss +85 -0
- package/dist/iife/Badge.module-5JDAQSAV.scss +106 -0
- package/dist/iife/Base.module-DJPJNUQ5.scss +80 -0
- package/dist/iife/BaseButton.module-4FKZZLVI.scss +103 -0
- package/dist/iife/Brand.module-FCHTLJQK.scss +4 -0
- package/dist/iife/BrandMoment.module-4P7H2D3W.scss +196 -0
- package/dist/iife/Calendar.module-H7XBQXTA.scss +211 -0
- package/dist/iife/CalendarRange.module-QWW624PJ.scss +64 -0
- package/dist/iife/CalendarSingle.module-N2P3DWLM.scss +18 -0
- package/dist/iife/Card.module-VEUOO2LT.scss +38 -0
- package/dist/iife/Checkbox.module-L2DRIMTV.scss +155 -0
- package/dist/iife/CheckboxField.module-MS76TDL7.scss +46 -0
- package/dist/iife/CheckboxGroup.module-AHAPICAN.scss +13 -0
- package/dist/iife/ClearButton.module-KVNHOLVT.scss +79 -0
- package/dist/iife/Collapsible.module-ZJNVWQIB.scss +119 -0
- package/dist/iife/CollapsibleGroup.module-UR2SIYLJ.scss +10 -0
- package/dist/iife/ConfirmationModal.module-RN2H7KPL.scss +157 -0
- package/dist/iife/Content.module-6CTLBAHR.scss +25 -0
- package/dist/iife/ContextModal.module-TTFVPUPU.scss +77 -0
- package/dist/iife/DateInput.module-YBXARKD2.scss +3 -0
- package/dist/iife/DateInputDescription.module-SGAJNB7K.scss +19 -0
- package/dist/iife/DateInputField.module-2LG4I24X.scss +5 -0
- package/dist/iife/DateInputWithIconButton.module-RSUEQ345.scss +53 -0
- package/dist/iife/DateRangePicker.module-EIUGUIIA.scss +115 -0
- package/dist/iife/Divider.module-YXIUJPD4.scss +40 -0
- package/dist/iife/Dropdown.module-4CIBZTRZ.scss +100 -0
- package/dist/iife/DropdownButton.module-WZ6FRRPS.scss +44 -0
- package/dist/iife/EditableRichTextContent.module-N2SFSI5C.scss +25 -0
- package/dist/iife/EmptyState.module-DOSURL5X.scss +156 -0
- package/dist/iife/ExampleComponent.module-4G6FO336.scss +3 -0
- package/dist/iife/ExpertAdviceCollapsible.module-L554JCXB.scss +47 -0
- package/dist/iife/FieldGroup.module-SUPERNC6.scss +10 -0
- package/dist/iife/FieldMessage.module-6CWQV65E.scss +73 -0
- package/dist/iife/FilterMenuButton.module-26EL5K3H.scss +19 -0
- package/dist/iife/FilterSplitButton.module-LMMEHFXQ.scss +133 -0
- package/dist/iife/FilterTriggerButton.module-LGSTEFAE.scss +5 -0
- package/dist/iife/FloatingCalendarWrapper.module-62NLSOUD.scss +12 -0
- package/dist/iife/GenericButton.module-NIOY5S5X.scss +113 -0
- package/dist/iife/GenericModal.module-DW6NSOGA.scss +110 -0
- package/dist/iife/GenericModalSection.module-MJ4MTMSP.scss +7 -0
- package/dist/iife/GenericNotification.module-DAERSOHE.scss +115 -0
- package/dist/iife/GenericTile.module-ZXQ4XWP4.scss +136 -0
- package/dist/iife/GuidanceBlock.module-FAHJFZMK.scss +324 -0
- package/dist/iife/Heading.module-WIR3ANFU.scss +104 -0
- package/dist/iife/HeroCard.module-LXHTKJTW.scss +106 -0
- package/dist/iife/Icon.module-VD7NKLAR.scss +72 -0
- package/dist/iife/Input.module-6PN2B7VB.scss +332 -0
- package/dist/iife/InputEditModal.module-X3TLJPFO.scss +36 -0
- package/dist/iife/InputRange.module-RGISUI4D.scss +181 -0
- package/dist/iife/InputSearch.module-YAL2OSZP.scss +238 -0
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.js +854 -0
- package/dist/iife/KaizenProvider/ThemeProvider/ThemeManager.spec.js +1178 -0
- package/dist/iife/KaizenProvider/ThemeProvider/index.js +3449 -0
- package/dist/iife/KaizenProvider/index.js +3458 -0
- package/dist/iife/Label.module-QP4J7I5H.scss +118 -0
- package/dist/iife/Layout.module-MZ6JYT46.scss +58 -0
- package/dist/iife/LikertScaleLegacy.module-JYCJ5CON.scss +298 -0
- package/dist/iife/LinkPopover-7NCAPCQ3.scss +22 -0
- package/dist/iife/ListBox.module-5GNTZUCX.scss +18 -0
- package/dist/iife/ListBox.module-RXUZV2C4.scss +14 -0
- package/dist/iife/ListBoxSection.module-53ABDKRS.scss +3 -0
- package/dist/iife/ListBoxSection.module-D2PXJRKU.scss +20 -0
- package/dist/iife/LoadMoreButton.module-ANUUS5ER.scss +5 -0
- package/dist/iife/LoadingGraphic.module-URCRSF4P.scss +10 -0
- package/dist/iife/LoadingHeading.module-OV5P5QHZ.scss +67 -0
- package/dist/iife/LoadingInput.module-7NL2PX46.scss +9 -0
- package/dist/iife/LoadingParagraph.module-43NZVIEE.scss +50 -0
- package/dist/iife/LoadingSpinner.module-VMTNZETE.scss +31 -0
- package/dist/iife/MainActions.module-T43D33YO.scss +16 -0
- package/dist/iife/Margin.module-DJURK5K7.scss +19 -0
- package/dist/iife/Menu.module-N76N74LN.scss +111 -0
- package/dist/iife/MenuDropdown.module-DYV6JLT6.scss +26 -0
- package/dist/iife/MenuFooter.module-7J44RW5D.scss +9 -0
- package/dist/iife/MenuItem.module-LD7ZYX4T.scss +99 -0
- package/dist/iife/MenuList.module-44RMG7CF.scss +35 -0
- package/dist/iife/MenuLoadingSkeleton.module-DH3I5Z2J.scss +9 -0
- package/dist/iife/MenuPopup.module-NQRYVXAG.scss +27 -0
- package/dist/iife/MobileActions.module-Z6PD4VIR.scss +198 -0
- package/dist/iife/ModalAccessibleDescription.module-NIJNKHHO.scss +3 -0
- package/dist/iife/ModalAccessibleLabel.module-NG26HDU4.scss +58 -0
- package/dist/iife/ModalFooter.module-TK3HAXMB.scss +69 -0
- package/dist/iife/ModalHeader.module-6SW7KZ22.scss +23 -0
- package/dist/iife/MultiActionTile.module-4Y2NA4H6.scss +3 -0
- package/dist/iife/MultiSelectOption.module-TIZIGUVB.scss +115 -0
- package/dist/iife/NavigationTabs.module-VDIXMFXJ.scss +108 -0
- package/dist/iife/NoResults.module-3FUWBVUH.scss +3 -0
- package/dist/iife/Option.module-O2QRLWHC.scss +87 -0
- package/dist/iife/Overlay.module-W7K5DWH6.scss +24 -0
- package/dist/iife/Padding.module-QSNUEZBU.scss +19 -0
- package/dist/iife/Pagination.module-U5S6WZ5K.scss +124 -0
- package/dist/iife/Paragraph.module-J7DMUCVE.scss +71 -0
- package/dist/iife/Popover.module-5ZQUBHXG.scss +264 -0
- package/dist/iife/ProgressBar.module-RL2UWVEH.scss +91 -0
- package/dist/iife/Radio.module-DCWPHVKW.scss +99 -0
- package/dist/iife/RadioField.module-C2XRADW5.scss +50 -0
- package/dist/iife/RadioGroup.module-PDLRO572.scss +23 -0
- package/dist/iife/RemovableFilterTrigger.module-SJ37V6UZ.scss +29 -0
- package/dist/iife/RichTextContent.module-4HA44IM4.scss +5 -0
- package/dist/iife/RichTextEditor.module-ZHXEK4XJ.scss +97 -0
- package/dist/iife/RoadblockModal.module-KVZCYLF2.scss +45 -0
- package/dist/iife/SearchField.module-2EV6HGZE.scss +6 -0
- package/dist/iife/SearchInput.module-RQEF3FWR.scss +6 -0
- package/dist/iife/SectionDivider.module-AN4OA4O3.scss +3 -0
- package/dist/iife/Select.module-6LHWOGGY.scss +391 -0
- package/dist/iife/Select.module-WOGFQRYI.scss +8 -0
- package/dist/iife/SelectionControlButton.module-HO7BZ2UP.scss +81 -0
- package/dist/iife/SkipLink.module-KAZA7PAL.scss +109 -0
- package/dist/iife/Skirt.module-S3GPHMMQ.scss +32 -0
- package/dist/iife/SkirtCard.module-6YQ4PS2K.scss +16 -0
- package/dist/iife/Slider.module-EIBFJ2LP.scss +42 -0
- package/dist/iife/SplitButton.module-WMGCIDDK.scss +4 -0
- package/dist/iife/StatelessMenu.module-SX2T5P4I.scss +3 -0
- package/dist/iife/Tab.module-4S535DQG.scss +105 -0
- package/dist/iife/TabList.module-FVWF5RCV.scss +11 -0
- package/dist/iife/TabPanel.module-2YHJE4CY.scss +14 -0
- package/dist/iife/Table.module-LCDRXCBP.scss +233 -0
- package/dist/iife/Tabs.module-BUPNPYW4.scss +172 -0
- package/dist/iife/Tag.module-T6PQJLSW.scss +268 -0
- package/dist/iife/Text.module-SXGFOHGJ.scss +173 -0
- package/dist/iife/TextArea.module-JLTW3M73.scss +138 -0
- package/dist/iife/TextAreaField.module-4K35MSCT.scss +20 -0
- package/dist/iife/TextField.module-KFAPVZZK.scss +49 -0
- package/dist/iife/TileGrid.module-NJQFVYRS.scss +23 -0
- package/dist/iife/TimeField.module-B4WNYAUE.scss +75 -0
- package/dist/iife/TimeSegment.module-TKOTKIXH.scss +53 -0
- package/dist/iife/TitleBlockMenuItem.module-LWVSMJTH.scss +99 -0
- package/dist/iife/TitleBlockZen.module-OK3QIC4Y.scss +695 -0
- package/dist/iife/ToastNotificationsList.module-EHDVGWDW.scss +26 -0
- package/dist/iife/ToggleIconButton.module-COM67MDC.scss +132 -0
- package/dist/iife/ToggleSwitch.module-3YDF4MLF.scss +128 -0
- package/dist/iife/ToggleSwitchField.module-BJOL7O7U.scss +15 -0
- package/dist/iife/Toolbar.module-3BZYZE6H.scss +44 -0
- package/dist/iife/Toolbar.module-BP3GTBGW.scss +6 -0
- package/dist/iife/ToolbarSection.module-LZTHWGO7.scss +15 -0
- package/dist/iife/Tooltip.module-YU7VOTNZ.scss +184 -0
- package/dist/iife/TriggerButton.module-ML4U7VQL.scss +139 -0
- package/dist/iife/TriggerButtonBase.module-QFRV6YZQ.scss +14 -0
- package/dist/iife/VisuallyHidden.module-E5JUNEF5.scss +9 -0
- package/dist/iife/Well.module-4TIRC3HQ.scss +73 -0
- package/dist/iife/__future__/ExampleComponent/index.js +2246 -0
- package/dist/iife/__future__/index.js +42129 -0
- package/dist/iife/add-link.icon-2JH25LOT.svg +3 -0
- package/dist/iife/arrow-backward.icon-DGOZ655M.svg +17 -0
- package/dist/iife/arrow-forward.icon-MO6IWNHW.svg +17 -0
- package/dist/iife/arrow-left.icon-RWWYLDT3.svg +17 -0
- package/dist/iife/arrow-right.icon-3ZGNCW3O.svg +17 -0
- package/dist/iife/bold.icon-FEZQ56AP.svg +3 -0
- package/dist/iife/bulletted-list.icon-ZDSXNO72.svg +3 -0
- package/dist/iife/caution-white.icon-7QPLIIHQ.svg +1 -0
- package/dist/iife/check.icon-CYCBCOVT.svg +17 -0
- package/dist/iife/chevron-down.icon-COG3GAYR.svg +17 -0
- package/dist/iife/chevron-up.icon-O5VRF5BX.svg +17 -0
- package/dist/iife/clear-white.icon-O3ZK5Z2K.svg +18 -0
- package/dist/iife/clear.icon-OD6PWTJH.svg +17 -0
- package/dist/iife/close.icon-7H6W45MB.svg +1 -0
- package/dist/iife/date-start.icon-NV4EVRXI.svg +17 -0
- package/dist/iife/decrease-indent.icon-VAYQUHQG.svg +3 -0
- package/dist/iife/edit.icon-YJ4EIXHJ.svg +17 -0
- package/dist/iife/ellipsis.icon-DECY5OPU.svg +17 -0
- package/dist/iife/end.icon-4DQDOQVX.svg +1 -0
- package/dist/iife/exclamation-white.icon-WX7P4EOV.svg +19 -0
- package/dist/iife/exclamation.icon-FJBHW7NP.svg +17 -0
- package/dist/iife/external-link.icon-7FNRTMN2.svg +17 -0
- package/dist/iife/hamburger.icon-YHQT7RB6.svg +17 -0
- package/dist/iife/increase-indent.icon-3XUPJEBD.svg +3 -0
- package/dist/iife/index.js +117482 -0
- package/dist/iife/information-white.icon-3DXZDERC.svg +19 -0
- package/dist/iife/information.icon-5LHKLG66.svg +17 -0
- package/dist/iife/italics.icon-WWQDZP3S.svg +3 -0
- package/dist/iife/loading-skeleton.module-RZXSULUO.scss +26 -0
- package/dist/iife/meatballs.icon-DECY5OPU.svg +17 -0
- package/dist/iife/minus.icon-7B6G432O.svg +17 -0
- package/dist/iife/numbered-list.icon-WPE4LE5R.svg +3 -0
- package/dist/iife/remove-link.icon-QMFTP7WO.svg +3 -0
- package/dist/iife/search.icon-ML7HSFID.svg +17 -0
- package/dist/iife/skip.icon-4OAFSA2T.svg +12 -0
- package/dist/iife/sort-ascending.icon-E24DTSHO.svg +17 -0
- package/dist/iife/sort-descending.icon-4SMPW2PG.svg +17 -0
- package/dist/iife/start.icon-JC4OAMAZ.svg +1 -0
- package/dist/iife/success-white.icon-VXFA2PUU.svg +18 -0
- package/dist/iife/success.icon-QNKK4XJE.svg +17 -0
- package/dist/iife/underline.icon-ACYVVVSD.svg +3 -0
- package/dist/iife/user.icon-24JPACDP.svg +17 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +66 -1
- package/future/package.json +3 -4
- package/icons/academy.icon.svg +17 -0
- package/icons/action-off-white.icon.svg +18 -0
- package/icons/action-off.icon.svg +17 -0
- package/icons/action-on.icon.svg +17 -0
- package/icons/add-link.icon.svg +3 -0
- package/icons/add-white.icon.svg +18 -0
- package/icons/add.icon.svg +17 -0
- package/icons/archived-white.icon.svg +18 -0
- package/icons/archived.icon.svg +17 -0
- package/icons/arrow-backward.icon.svg +17 -0
- package/icons/arrow-down.icon.svg +17 -0
- package/icons/arrow-forward.icon.svg +17 -0
- package/icons/arrow-left.icon.svg +17 -0
- package/icons/arrow-right.icon.svg +17 -0
- package/icons/arrow-up.icon.svg +17 -0
- package/icons/blank.icon.svg +17 -0
- package/icons/bold.icon.svg +3 -0
- package/icons/bookmark-off.icon.svg +3 -0
- package/icons/bookmark-on.icon.svg +3 -0
- package/icons/branching.icon.svg +15 -0
- package/icons/bulletted-list.icon.svg +3 -0
- package/icons/ca-monogram.icon.svg +17 -0
- package/icons/camera.icon.svg +19 -0
- package/icons/caution-white.icon.svg +1 -0
- package/icons/caution.icon.svg +1 -0
- package/icons/check.icon.svg +17 -0
- package/icons/chevron-down.icon.svg +17 -0
- package/icons/chevron-left.icon.svg +17 -0
- package/icons/chevron-right.icon.svg +17 -0
- package/icons/chevron-up.icon.svg +17 -0
- package/icons/clear-white.icon.svg +18 -0
- package/icons/clear.icon.svg +17 -0
- package/icons/close.icon.svg +1 -0
- package/icons/closed-white.icon.svg +18 -0
- package/icons/closed.icon.svg +17 -0
- package/icons/comment-add-white.icon.svg +18 -0
- package/icons/comment-add.icon.svg +17 -0
- package/icons/comment-disabled-white.icon.svg +18 -0
- package/icons/comment-disabled.icon.svg +17 -0
- package/icons/comment-white.icon.svg +20 -0
- package/icons/comment.icon.svg +17 -0
- package/icons/communications.icon.svg +15 -0
- package/icons/competency-library.icon.svg +7 -0
- package/icons/configure.icon.svg +17 -0
- package/icons/connect.icon.svg +3 -0
- package/icons/custom.icon.svg +17 -0
- package/icons/dashboard.icon.svg +19 -0
- package/icons/date-end-white.icon.svg +19 -0
- package/icons/date-end.icon.svg +17 -0
- package/icons/date-range-white.icon.svg +21 -0
- package/icons/date-range.icon.svg +17 -0
- package/icons/date-start-white.icon.svg +19 -0
- package/icons/date-start.icon.svg +17 -0
- package/icons/decrease-indent.icon.svg +3 -0
- package/icons/delta-bare-white.icon.svg +18 -0
- package/icons/delta-bare.icon.svg +17 -0
- package/icons/delta-flat.icon.svg +1 -0
- package/icons/delta-negative.icon.svg +1 -0
- package/icons/delta-positive.icon.svg +1 -0
- package/icons/delta-white.icon.svg +19 -0
- package/icons/delta.icon.svg +18 -0
- package/icons/demographics.icon.svg +17 -0
- package/icons/department.icon.svg +6 -0
- package/icons/draft-white.icon.svg +19 -0
- package/icons/draft.icon.svg +17 -0
- package/icons/drag.icon.svg +17 -0
- package/icons/duplicate.icon.svg +17 -0
- package/icons/edit.icon.svg +17 -0
- package/icons/effectiveness.icon.svg +17 -0
- package/icons/ellipsis.icon.svg +17 -0
- package/icons/email.icon.svg +15 -0
- package/icons/empty-white.icon.svg +13 -0
- package/icons/empty.icon.svg +17 -0
- package/icons/end.icon.svg +1 -0
- package/icons/engagement-white.icon.svg +18 -0
- package/icons/engagement.icon.svg +17 -0
- package/icons/equal-white.icon.svg +19 -0
- package/icons/equal.icon.svg +12 -0
- package/icons/exclamation-octagon-white.icon.svg +19 -0
- package/icons/exclamation-octagon.icon.svg +17 -0
- package/icons/exclamation-white.icon.svg +19 -0
- package/icons/exclamation.icon.svg +17 -0
- package/icons/experience.icon.svg +17 -0
- package/icons/export-white.icon.svg +18 -0
- package/icons/export.icon.svg +17 -0
- package/icons/external-link.icon.svg +17 -0
- package/icons/face-dissatisfied-white.icon.svg +16 -0
- package/icons/face-dissatisfied.icon.svg +17 -0
- package/icons/face-neutral-white.icon.svg +21 -0
- package/icons/face-neutral.icon.svg +17 -0
- package/icons/face-satisfied-white.icon.svg +21 -0
- package/icons/face-satisfied.icon.svg +17 -0
- package/icons/face-very-dissatisfied-white.icon.svg +21 -0
- package/icons/face-very-dissatisfied.icon.svg +17 -0
- package/icons/face-very-satisfied-white.icon.svg +21 -0
- package/icons/face-very-satisfied.icon.svg +17 -0
- package/icons/factors.icon.svg +15 -0
- package/icons/favorite-off.icon.svg +15 -0
- package/icons/favorite-on.icon.svg +15 -0
- package/icons/feedback-classify-white.icon.svg +18 -0
- package/icons/feedback-classify.icon.svg +17 -0
- package/icons/feedback-completed-white.icon.svg +19 -0
- package/icons/feedback-completed.icon.svg +17 -0
- package/icons/feedback-report-white.icon.svg +20 -0
- package/icons/feedback-report.icon.svg +17 -0
- package/icons/feedback-review-white.icon.svg +19 -0
- package/icons/feedback-review.icon.svg +17 -0
- package/icons/feedback-share-white.icon.svg +18 -0
- package/icons/feedback-share.icon.svg +17 -0
- package/icons/file-white.icon.svg +20 -0
- package/icons/file.icon.svg +17 -0
- package/icons/filter.icon.svg +17 -0
- package/icons/flag-off-white.icon.svg +13 -0
- package/icons/flag-off.icon.svg +17 -0
- package/icons/flag-on.icon.svg +17 -0
- package/icons/full.icon.svg +17 -0
- package/icons/grid-view.icon.svg +17 -0
- package/icons/guidance.icon.svg +15 -0
- package/icons/hamburger.icon.svg +17 -0
- package/icons/heatmap-white.icon.svg +18 -0
- package/icons/heatmap.icon.svg +17 -0
- package/icons/hierarchy.icon.svg +17 -0
- package/icons/home.icon.svg +17 -0
- package/icons/import-white.icon.svg +18 -0
- package/icons/import.icon.svg +17 -0
- package/icons/increase-indent.icon.svg +3 -0
- package/icons/information-white.icon.svg +19 -0
- package/icons/information.icon.svg +17 -0
- package/icons/insight.icon.svg +19 -0
- package/icons/invisible.icon.svg +12 -0
- package/icons/italics.icon.svg +3 -0
- package/icons/kebab.icon.svg +19 -0
- package/icons/kiosk-white.icon.svg +19 -0
- package/icons/kiosk.icon.svg +17 -0
- package/icons/launch-white.icon.svg +18 -0
- package/icons/launch.icon.svg +12 -0
- package/icons/leaderboard.icon.svg +15 -0
- package/icons/list-view.icon.svg +17 -0
- package/icons/lock-white.icon.svg +18 -0
- package/icons/lock.icon.svg +17 -0
- package/icons/log-out.icon.svg +17 -0
- package/icons/maximize.icon.svg +1 -0
- package/icons/meatballs.icon.svg +17 -0
- package/icons/minimize.icon.svg +1 -0
- package/icons/minus.icon.svg +17 -0
- package/icons/navigator.icon.svg +17 -0
- package/icons/notification.icon.svg +17 -0
- package/icons/numbered-list-rtl.icon.svg +3 -0
- package/icons/numbered-list.icon.svg +3 -0
- package/icons/open-white.icon.svg +15 -0
- package/icons/open.icon.svg +17 -0
- package/icons/organization.icon.svg +3 -0
- package/icons/participation-white.icon.svg +18 -0
- package/icons/participation.icon.svg +19 -0
- package/icons/pause-white.icon.svg +19 -0
- package/icons/pause.icon.svg +17 -0
- package/icons/percentage.icon.svg +6 -0
- package/icons/permissions.icon.svg +17 -0
- package/icons/person.icon.svg +17 -0
- package/icons/photo-upload.icon.svg +3 -0
- package/icons/power.icon.svg +17 -0
- package/icons/print-white.icon.svg +15 -0
- package/icons/print.icon.svg +17 -0
- package/icons/process-manager.icon.svg +17 -0
- package/icons/promotion-white.icon.svg +18 -0
- package/icons/promotion.icon.svg +12 -0
- package/icons/question-white.icon.svg +19 -0
- package/icons/question.icon.svg +12 -0
- package/icons/questions.icon.svg +15 -0
- package/icons/redo.icon.svg +17 -0
- package/icons/refresh.icon.svg +17 -0
- package/icons/remove-link.icon.svg +3 -0
- package/icons/repeats.icon.svg +17 -0
- package/icons/report-sharing.icon.svg +17 -0
- package/icons/report.icon.svg +17 -0
- package/icons/restore.icon.svg +11 -0
- package/icons/save.icon.svg +15 -0
- package/icons/search-white.icon.svg +18 -0
- package/icons/search.icon.svg +17 -0
- package/icons/security-tip.icon.svg +3 -0
- package/icons/send-rtl.icon.svg +15 -0
- package/icons/send.icon.svg +17 -0
- package/icons/settings-white.icon.svg +18 -0
- package/icons/settings.icon.svg +17 -0
- package/icons/share.icon.svg +17 -0
- package/icons/skip-white.icon.svg +19 -0
- package/icons/skip.icon.svg +12 -0
- package/icons/sort-ascending.icon.svg +17 -0
- package/icons/sort-descending.icon.svg +17 -0
- package/icons/spinner.icon.svg +1 -0
- package/icons/star-off.icon.svg +15 -0
- package/icons/star-on.icon.svg +15 -0
- package/icons/start.icon.svg +1 -0
- package/icons/subtract-white.icon.svg +18 -0
- package/icons/subtract.icon.svg +17 -0
- package/icons/success-white.icon.svg +18 -0
- package/icons/success.icon.svg +17 -0
- package/icons/support.icon.svg +17 -0
- package/icons/surveys-white.icon.svg +20 -0
- package/icons/surveys.icon.svg +17 -0
- package/icons/sync.icon.svg +17 -0
- package/icons/tag.icon.svg +17 -0
- package/icons/tasks-white.icon.svg +18 -0
- package/icons/tasks.icon.svg +17 -0
- package/icons/template-white.icon.svg +20 -0
- package/icons/template.icon.svg +17 -0
- package/icons/text-analytics-white.icon.svg +22 -0
- package/icons/text-analytics.icon.svg +14 -0
- package/icons/thumbs-down.icon.svg +17 -0
- package/icons/thumbs-up.icon.svg +17 -0
- package/icons/time-white.icon.svg +18 -0
- package/icons/time.icon.svg +12 -0
- package/icons/translation.icon.svg +15 -0
- package/icons/trash.icon.svg +17 -0
- package/icons/unattributed-white.icon.svg +21 -0
- package/icons/unattributed.icon.svg +17 -0
- package/icons/underline.icon.svg +3 -0
- package/icons/undo.icon.svg +17 -0
- package/icons/user-add.icon.svg +17 -0
- package/icons/user-delete.icon.svg +17 -0
- package/icons/user-exit.icon.svg +17 -0
- package/icons/user-select.icon.svg +17 -0
- package/icons/user-settings.icon.svg +17 -0
- package/icons/user-update.icon.svg +17 -0
- package/icons/user.icon.svg +17 -0
- package/icons/users.icon.svg +17 -0
- package/icons/visible.icon.svg +17 -0
- package/icons/writing.icon.svg +17 -0
- package/icons/zoom-in.icon.svg +3 -0
- package/icons/zoom-out.icon.svg +3 -0
- package/package.json +14 -13
- package/dist/future.cjs.js +0 -1
- package/dist/future.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/types/KaizenProvider/KaizenProvider.d.ts +0 -10
- package/dist/types/KaizenProvider/ThemeProvider/ThemeProvider.d.ts +0 -13
- package/dist/types/KaizenProvider/ThemeProvider/index.d.ts +0 -2
- package/dist/types/KaizenProvider/index.d.ts +0 -2
- package/dist/types/__future__/ExampleComponent/ExampleComponent.d.ts +0 -2
- package/dist/types/__future__/ExampleComponent/index.d.ts +0 -1
- package/dist/types/__future__/index.d.ts +0 -3
- package/dist/types/future.d.ts +0 -1
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
|
|
29
|
+
// ../../node_modules/color-name/index.js
|
|
30
|
+
var require_color_name = __commonJS({
|
|
31
|
+
"../../node_modules/color-name/index.js"(exports, module) {
|
|
32
|
+
"use strict";
|
|
33
|
+
module.exports = {
|
|
34
|
+
"aliceblue": [240, 248, 255],
|
|
35
|
+
"antiquewhite": [250, 235, 215],
|
|
36
|
+
"aqua": [0, 255, 255],
|
|
37
|
+
"aquamarine": [127, 255, 212],
|
|
38
|
+
"azure": [240, 255, 255],
|
|
39
|
+
"beige": [245, 245, 220],
|
|
40
|
+
"bisque": [255, 228, 196],
|
|
41
|
+
"black": [0, 0, 0],
|
|
42
|
+
"blanchedalmond": [255, 235, 205],
|
|
43
|
+
"blue": [0, 0, 255],
|
|
44
|
+
"blueviolet": [138, 43, 226],
|
|
45
|
+
"brown": [165, 42, 42],
|
|
46
|
+
"burlywood": [222, 184, 135],
|
|
47
|
+
"cadetblue": [95, 158, 160],
|
|
48
|
+
"chartreuse": [127, 255, 0],
|
|
49
|
+
"chocolate": [210, 105, 30],
|
|
50
|
+
"coral": [255, 127, 80],
|
|
51
|
+
"cornflowerblue": [100, 149, 237],
|
|
52
|
+
"cornsilk": [255, 248, 220],
|
|
53
|
+
"crimson": [220, 20, 60],
|
|
54
|
+
"cyan": [0, 255, 255],
|
|
55
|
+
"darkblue": [0, 0, 139],
|
|
56
|
+
"darkcyan": [0, 139, 139],
|
|
57
|
+
"darkgoldenrod": [184, 134, 11],
|
|
58
|
+
"darkgray": [169, 169, 169],
|
|
59
|
+
"darkgreen": [0, 100, 0],
|
|
60
|
+
"darkgrey": [169, 169, 169],
|
|
61
|
+
"darkkhaki": [189, 183, 107],
|
|
62
|
+
"darkmagenta": [139, 0, 139],
|
|
63
|
+
"darkolivegreen": [85, 107, 47],
|
|
64
|
+
"darkorange": [255, 140, 0],
|
|
65
|
+
"darkorchid": [153, 50, 204],
|
|
66
|
+
"darkred": [139, 0, 0],
|
|
67
|
+
"darksalmon": [233, 150, 122],
|
|
68
|
+
"darkseagreen": [143, 188, 143],
|
|
69
|
+
"darkslateblue": [72, 61, 139],
|
|
70
|
+
"darkslategray": [47, 79, 79],
|
|
71
|
+
"darkslategrey": [47, 79, 79],
|
|
72
|
+
"darkturquoise": [0, 206, 209],
|
|
73
|
+
"darkviolet": [148, 0, 211],
|
|
74
|
+
"deeppink": [255, 20, 147],
|
|
75
|
+
"deepskyblue": [0, 191, 255],
|
|
76
|
+
"dimgray": [105, 105, 105],
|
|
77
|
+
"dimgrey": [105, 105, 105],
|
|
78
|
+
"dodgerblue": [30, 144, 255],
|
|
79
|
+
"firebrick": [178, 34, 34],
|
|
80
|
+
"floralwhite": [255, 250, 240],
|
|
81
|
+
"forestgreen": [34, 139, 34],
|
|
82
|
+
"fuchsia": [255, 0, 255],
|
|
83
|
+
"gainsboro": [220, 220, 220],
|
|
84
|
+
"ghostwhite": [248, 248, 255],
|
|
85
|
+
"gold": [255, 215, 0],
|
|
86
|
+
"goldenrod": [218, 165, 32],
|
|
87
|
+
"gray": [128, 128, 128],
|
|
88
|
+
"green": [0, 128, 0],
|
|
89
|
+
"greenyellow": [173, 255, 47],
|
|
90
|
+
"grey": [128, 128, 128],
|
|
91
|
+
"honeydew": [240, 255, 240],
|
|
92
|
+
"hotpink": [255, 105, 180],
|
|
93
|
+
"indianred": [205, 92, 92],
|
|
94
|
+
"indigo": [75, 0, 130],
|
|
95
|
+
"ivory": [255, 255, 240],
|
|
96
|
+
"khaki": [240, 230, 140],
|
|
97
|
+
"lavender": [230, 230, 250],
|
|
98
|
+
"lavenderblush": [255, 240, 245],
|
|
99
|
+
"lawngreen": [124, 252, 0],
|
|
100
|
+
"lemonchiffon": [255, 250, 205],
|
|
101
|
+
"lightblue": [173, 216, 230],
|
|
102
|
+
"lightcoral": [240, 128, 128],
|
|
103
|
+
"lightcyan": [224, 255, 255],
|
|
104
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
|
105
|
+
"lightgray": [211, 211, 211],
|
|
106
|
+
"lightgreen": [144, 238, 144],
|
|
107
|
+
"lightgrey": [211, 211, 211],
|
|
108
|
+
"lightpink": [255, 182, 193],
|
|
109
|
+
"lightsalmon": [255, 160, 122],
|
|
110
|
+
"lightseagreen": [32, 178, 170],
|
|
111
|
+
"lightskyblue": [135, 206, 250],
|
|
112
|
+
"lightslategray": [119, 136, 153],
|
|
113
|
+
"lightslategrey": [119, 136, 153],
|
|
114
|
+
"lightsteelblue": [176, 196, 222],
|
|
115
|
+
"lightyellow": [255, 255, 224],
|
|
116
|
+
"lime": [0, 255, 0],
|
|
117
|
+
"limegreen": [50, 205, 50],
|
|
118
|
+
"linen": [250, 240, 230],
|
|
119
|
+
"magenta": [255, 0, 255],
|
|
120
|
+
"maroon": [128, 0, 0],
|
|
121
|
+
"mediumaquamarine": [102, 205, 170],
|
|
122
|
+
"mediumblue": [0, 0, 205],
|
|
123
|
+
"mediumorchid": [186, 85, 211],
|
|
124
|
+
"mediumpurple": [147, 112, 219],
|
|
125
|
+
"mediumseagreen": [60, 179, 113],
|
|
126
|
+
"mediumslateblue": [123, 104, 238],
|
|
127
|
+
"mediumspringgreen": [0, 250, 154],
|
|
128
|
+
"mediumturquoise": [72, 209, 204],
|
|
129
|
+
"mediumvioletred": [199, 21, 133],
|
|
130
|
+
"midnightblue": [25, 25, 112],
|
|
131
|
+
"mintcream": [245, 255, 250],
|
|
132
|
+
"mistyrose": [255, 228, 225],
|
|
133
|
+
"moccasin": [255, 228, 181],
|
|
134
|
+
"navajowhite": [255, 222, 173],
|
|
135
|
+
"navy": [0, 0, 128],
|
|
136
|
+
"oldlace": [253, 245, 230],
|
|
137
|
+
"olive": [128, 128, 0],
|
|
138
|
+
"olivedrab": [107, 142, 35],
|
|
139
|
+
"orange": [255, 165, 0],
|
|
140
|
+
"orangered": [255, 69, 0],
|
|
141
|
+
"orchid": [218, 112, 214],
|
|
142
|
+
"palegoldenrod": [238, 232, 170],
|
|
143
|
+
"palegreen": [152, 251, 152],
|
|
144
|
+
"paleturquoise": [175, 238, 238],
|
|
145
|
+
"palevioletred": [219, 112, 147],
|
|
146
|
+
"papayawhip": [255, 239, 213],
|
|
147
|
+
"peachpuff": [255, 218, 185],
|
|
148
|
+
"peru": [205, 133, 63],
|
|
149
|
+
"pink": [255, 192, 203],
|
|
150
|
+
"plum": [221, 160, 221],
|
|
151
|
+
"powderblue": [176, 224, 230],
|
|
152
|
+
"purple": [128, 0, 128],
|
|
153
|
+
"rebeccapurple": [102, 51, 153],
|
|
154
|
+
"red": [255, 0, 0],
|
|
155
|
+
"rosybrown": [188, 143, 143],
|
|
156
|
+
"royalblue": [65, 105, 225],
|
|
157
|
+
"saddlebrown": [139, 69, 19],
|
|
158
|
+
"salmon": [250, 128, 114],
|
|
159
|
+
"sandybrown": [244, 164, 96],
|
|
160
|
+
"seagreen": [46, 139, 87],
|
|
161
|
+
"seashell": [255, 245, 238],
|
|
162
|
+
"sienna": [160, 82, 45],
|
|
163
|
+
"silver": [192, 192, 192],
|
|
164
|
+
"skyblue": [135, 206, 235],
|
|
165
|
+
"slateblue": [106, 90, 205],
|
|
166
|
+
"slategray": [112, 128, 144],
|
|
167
|
+
"slategrey": [112, 128, 144],
|
|
168
|
+
"snow": [255, 250, 250],
|
|
169
|
+
"springgreen": [0, 255, 127],
|
|
170
|
+
"steelblue": [70, 130, 180],
|
|
171
|
+
"tan": [210, 180, 140],
|
|
172
|
+
"teal": [0, 128, 128],
|
|
173
|
+
"thistle": [216, 191, 216],
|
|
174
|
+
"tomato": [255, 99, 71],
|
|
175
|
+
"turquoise": [64, 224, 208],
|
|
176
|
+
"violet": [238, 130, 238],
|
|
177
|
+
"wheat": [245, 222, 179],
|
|
178
|
+
"white": [255, 255, 255],
|
|
179
|
+
"whitesmoke": [245, 245, 245],
|
|
180
|
+
"yellow": [255, 255, 0],
|
|
181
|
+
"yellowgreen": [154, 205, 50]
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
// ../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js
|
|
187
|
+
var require_is_arrayish = __commonJS({
|
|
188
|
+
"../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js"(exports, module) {
|
|
189
|
+
module.exports = function isArrayish(obj) {
|
|
190
|
+
if (!obj || typeof obj === "string") {
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && (obj.splice instanceof Function || Object.getOwnPropertyDescriptor(obj, obj.length - 1) && obj.constructor.name !== "String");
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
// ../../node_modules/simple-swizzle/index.js
|
|
199
|
+
var require_simple_swizzle = __commonJS({
|
|
200
|
+
"../../node_modules/simple-swizzle/index.js"(exports, module) {
|
|
201
|
+
"use strict";
|
|
202
|
+
var isArrayish = require_is_arrayish();
|
|
203
|
+
var concat = Array.prototype.concat;
|
|
204
|
+
var slice = Array.prototype.slice;
|
|
205
|
+
var swizzle = module.exports = function swizzle2(args) {
|
|
206
|
+
var results = [];
|
|
207
|
+
for (var i = 0, len = args.length; i < len; i++) {
|
|
208
|
+
var arg = args[i];
|
|
209
|
+
if (isArrayish(arg)) {
|
|
210
|
+
results = concat.call(results, slice.call(arg));
|
|
211
|
+
} else {
|
|
212
|
+
results.push(arg);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return results;
|
|
216
|
+
};
|
|
217
|
+
swizzle.wrap = function(fn) {
|
|
218
|
+
return function() {
|
|
219
|
+
return fn(swizzle(arguments));
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
// ../../node_modules/color-string/index.js
|
|
226
|
+
var require_color_string = __commonJS({
|
|
227
|
+
"../../node_modules/color-string/index.js"(exports, module) {
|
|
228
|
+
var colorNames = require_color_name();
|
|
229
|
+
var swizzle = require_simple_swizzle();
|
|
230
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
|
231
|
+
var reverseNames = /* @__PURE__ */ Object.create(null);
|
|
232
|
+
for (name in colorNames) {
|
|
233
|
+
if (hasOwnProperty.call(colorNames, name)) {
|
|
234
|
+
reverseNames[colorNames[name]] = name;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
var name;
|
|
238
|
+
var cs = module.exports = {
|
|
239
|
+
to: {},
|
|
240
|
+
get: {}
|
|
241
|
+
};
|
|
242
|
+
cs.get = function(string) {
|
|
243
|
+
var prefix = string.substring(0, 3).toLowerCase();
|
|
244
|
+
var val;
|
|
245
|
+
var model;
|
|
246
|
+
switch (prefix) {
|
|
247
|
+
case "hsl":
|
|
248
|
+
val = cs.get.hsl(string);
|
|
249
|
+
model = "hsl";
|
|
250
|
+
break;
|
|
251
|
+
case "hwb":
|
|
252
|
+
val = cs.get.hwb(string);
|
|
253
|
+
model = "hwb";
|
|
254
|
+
break;
|
|
255
|
+
default:
|
|
256
|
+
val = cs.get.rgb(string);
|
|
257
|
+
model = "rgb";
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
if (!val) {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
return { model, value: val };
|
|
264
|
+
};
|
|
265
|
+
cs.get.rgb = function(string) {
|
|
266
|
+
if (!string) {
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
var abbr = /^#([a-f0-9]{3,4})$/i;
|
|
270
|
+
var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
|
|
271
|
+
var rgba = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
|
272
|
+
var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
|
|
273
|
+
var keyword = /^(\w+)$/;
|
|
274
|
+
var rgb = [0, 0, 0, 1];
|
|
275
|
+
var match;
|
|
276
|
+
var i;
|
|
277
|
+
var hexAlpha;
|
|
278
|
+
if (match = string.match(hex)) {
|
|
279
|
+
hexAlpha = match[2];
|
|
280
|
+
match = match[1];
|
|
281
|
+
for (i = 0; i < 3; i++) {
|
|
282
|
+
var i2 = i * 2;
|
|
283
|
+
rgb[i] = parseInt(match.slice(i2, i2 + 2), 16);
|
|
284
|
+
}
|
|
285
|
+
if (hexAlpha) {
|
|
286
|
+
rgb[3] = parseInt(hexAlpha, 16) / 255;
|
|
287
|
+
}
|
|
288
|
+
} else if (match = string.match(abbr)) {
|
|
289
|
+
match = match[1];
|
|
290
|
+
hexAlpha = match[3];
|
|
291
|
+
for (i = 0; i < 3; i++) {
|
|
292
|
+
rgb[i] = parseInt(match[i] + match[i], 16);
|
|
293
|
+
}
|
|
294
|
+
if (hexAlpha) {
|
|
295
|
+
rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;
|
|
296
|
+
}
|
|
297
|
+
} else if (match = string.match(rgba)) {
|
|
298
|
+
for (i = 0; i < 3; i++) {
|
|
299
|
+
rgb[i] = parseInt(match[i + 1], 0);
|
|
300
|
+
}
|
|
301
|
+
if (match[4]) {
|
|
302
|
+
if (match[5]) {
|
|
303
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
|
304
|
+
} else {
|
|
305
|
+
rgb[3] = parseFloat(match[4]);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
} else if (match = string.match(per)) {
|
|
309
|
+
for (i = 0; i < 3; i++) {
|
|
310
|
+
rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
|
|
311
|
+
}
|
|
312
|
+
if (match[4]) {
|
|
313
|
+
if (match[5]) {
|
|
314
|
+
rgb[3] = parseFloat(match[4]) * 0.01;
|
|
315
|
+
} else {
|
|
316
|
+
rgb[3] = parseFloat(match[4]);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
} else if (match = string.match(keyword)) {
|
|
320
|
+
if (match[1] === "transparent") {
|
|
321
|
+
return [0, 0, 0, 0];
|
|
322
|
+
}
|
|
323
|
+
if (!hasOwnProperty.call(colorNames, match[1])) {
|
|
324
|
+
return null;
|
|
325
|
+
}
|
|
326
|
+
rgb = colorNames[match[1]];
|
|
327
|
+
rgb[3] = 1;
|
|
328
|
+
return rgb;
|
|
329
|
+
} else {
|
|
330
|
+
return null;
|
|
331
|
+
}
|
|
332
|
+
for (i = 0; i < 3; i++) {
|
|
333
|
+
rgb[i] = clamp(rgb[i], 0, 255);
|
|
334
|
+
}
|
|
335
|
+
rgb[3] = clamp(rgb[3], 0, 1);
|
|
336
|
+
return rgb;
|
|
337
|
+
};
|
|
338
|
+
cs.get.hsl = function(string) {
|
|
339
|
+
if (!string) {
|
|
340
|
+
return null;
|
|
341
|
+
}
|
|
342
|
+
var hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
|
|
343
|
+
var match = string.match(hsl);
|
|
344
|
+
if (match) {
|
|
345
|
+
var alpha = parseFloat(match[4]);
|
|
346
|
+
var h = (parseFloat(match[1]) % 360 + 360) % 360;
|
|
347
|
+
var s = clamp(parseFloat(match[2]), 0, 100);
|
|
348
|
+
var l = clamp(parseFloat(match[3]), 0, 100);
|
|
349
|
+
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
|
350
|
+
return [h, s, l, a];
|
|
351
|
+
}
|
|
352
|
+
return null;
|
|
353
|
+
};
|
|
354
|
+
cs.get.hwb = function(string) {
|
|
355
|
+
if (!string) {
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
var hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
|
|
359
|
+
var match = string.match(hwb);
|
|
360
|
+
if (match) {
|
|
361
|
+
var alpha = parseFloat(match[4]);
|
|
362
|
+
var h = (parseFloat(match[1]) % 360 + 360) % 360;
|
|
363
|
+
var w = clamp(parseFloat(match[2]), 0, 100);
|
|
364
|
+
var b = clamp(parseFloat(match[3]), 0, 100);
|
|
365
|
+
var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
|
|
366
|
+
return [h, w, b, a];
|
|
367
|
+
}
|
|
368
|
+
return null;
|
|
369
|
+
};
|
|
370
|
+
cs.to.hex = function() {
|
|
371
|
+
var rgba = swizzle(arguments);
|
|
372
|
+
return "#" + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (rgba[3] < 1 ? hexDouble(Math.round(rgba[3] * 255)) : "");
|
|
373
|
+
};
|
|
374
|
+
cs.to.rgb = function() {
|
|
375
|
+
var rgba = swizzle(arguments);
|
|
376
|
+
return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + Math.round(rgba[0]) + ", " + Math.round(rgba[1]) + ", " + Math.round(rgba[2]) + ")" : "rgba(" + Math.round(rgba[0]) + ", " + Math.round(rgba[1]) + ", " + Math.round(rgba[2]) + ", " + rgba[3] + ")";
|
|
377
|
+
};
|
|
378
|
+
cs.to.rgb.percent = function() {
|
|
379
|
+
var rgba = swizzle(arguments);
|
|
380
|
+
var r = Math.round(rgba[0] / 255 * 100);
|
|
381
|
+
var g = Math.round(rgba[1] / 255 * 100);
|
|
382
|
+
var b = Math.round(rgba[2] / 255 * 100);
|
|
383
|
+
return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + r + "%, " + g + "%, " + b + "%)" : "rgba(" + r + "%, " + g + "%, " + b + "%, " + rgba[3] + ")";
|
|
384
|
+
};
|
|
385
|
+
cs.to.hsl = function() {
|
|
386
|
+
var hsla = swizzle(arguments);
|
|
387
|
+
return hsla.length < 4 || hsla[3] === 1 ? "hsl(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%)" : "hsla(" + hsla[0] + ", " + hsla[1] + "%, " + hsla[2] + "%, " + hsla[3] + ")";
|
|
388
|
+
};
|
|
389
|
+
cs.to.hwb = function() {
|
|
390
|
+
var hwba = swizzle(arguments);
|
|
391
|
+
var a = "";
|
|
392
|
+
if (hwba.length >= 4 && hwba[3] !== 1) {
|
|
393
|
+
a = ", " + hwba[3];
|
|
394
|
+
}
|
|
395
|
+
return "hwb(" + hwba[0] + ", " + hwba[1] + "%, " + hwba[2] + "%" + a + ")";
|
|
396
|
+
};
|
|
397
|
+
cs.to.keyword = function(rgb) {
|
|
398
|
+
return reverseNames[rgb.slice(0, 3)];
|
|
399
|
+
};
|
|
400
|
+
function clamp(num, min, max) {
|
|
401
|
+
return Math.min(Math.max(min, num), max);
|
|
402
|
+
}
|
|
403
|
+
function hexDouble(num) {
|
|
404
|
+
var str = Math.round(num).toString(16).toUpperCase();
|
|
405
|
+
return str.length < 2 ? "0" + str : str;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
// ../../node_modules/lodash.kebabcase/index.js
|
|
411
|
+
var require_lodash = __commonJS({
|
|
412
|
+
"../../node_modules/lodash.kebabcase/index.js"(exports, module) {
|
|
413
|
+
var INFINITY = 1 / 0;
|
|
414
|
+
var symbolTag = "[object Symbol]";
|
|
415
|
+
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
416
|
+
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
417
|
+
var rsAstralRange = "\\ud800-\\udfff";
|
|
418
|
+
var rsComboMarksRange = "\\u0300-\\u036f\\ufe20-\\ufe23";
|
|
419
|
+
var rsComboSymbolsRange = "\\u20d0-\\u20f0";
|
|
420
|
+
var rsDingbatRange = "\\u2700-\\u27bf";
|
|
421
|
+
var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
|
|
422
|
+
var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
|
|
423
|
+
var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
|
|
424
|
+
var rsPunctuationRange = "\\u2000-\\u206f";
|
|
425
|
+
var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
|
|
426
|
+
var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
|
|
427
|
+
var rsVarRange = "\\ufe0e\\ufe0f";
|
|
428
|
+
var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
429
|
+
var rsApos = "['\u2019]";
|
|
430
|
+
var rsBreak = "[" + rsBreakRange + "]";
|
|
431
|
+
var rsCombo = "[" + rsComboMarksRange + rsComboSymbolsRange + "]";
|
|
432
|
+
var rsDigits = "\\d+";
|
|
433
|
+
var rsDingbat = "[" + rsDingbatRange + "]";
|
|
434
|
+
var rsLower = "[" + rsLowerRange + "]";
|
|
435
|
+
var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
|
|
436
|
+
var rsFitz = "\\ud83c[\\udffb-\\udfff]";
|
|
437
|
+
var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
|
438
|
+
var rsNonAstral = "[^" + rsAstralRange + "]";
|
|
439
|
+
var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
|
440
|
+
var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
|
441
|
+
var rsUpper = "[" + rsUpperRange + "]";
|
|
442
|
+
var rsZWJ = "\\u200d";
|
|
443
|
+
var rsLowerMisc = "(?:" + rsLower + "|" + rsMisc + ")";
|
|
444
|
+
var rsUpperMisc = "(?:" + rsUpper + "|" + rsMisc + ")";
|
|
445
|
+
var rsOptLowerContr = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
|
|
446
|
+
var rsOptUpperContr = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
|
|
447
|
+
var reOptMod = rsModifier + "?";
|
|
448
|
+
var rsOptVar = "[" + rsVarRange + "]?";
|
|
449
|
+
var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
450
|
+
var rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
451
|
+
var rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq;
|
|
452
|
+
var reApos = RegExp(rsApos, "g");
|
|
453
|
+
var reComboMark = RegExp(rsCombo, "g");
|
|
454
|
+
var reUnicodeWord = RegExp([
|
|
455
|
+
rsUpper + "?" + rsLower + "+" + rsOptLowerContr + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
|
|
456
|
+
rsUpperMisc + "+" + rsOptUpperContr + "(?=" + [rsBreak, rsUpper + rsLowerMisc, "$"].join("|") + ")",
|
|
457
|
+
rsUpper + "?" + rsLowerMisc + "+" + rsOptLowerContr,
|
|
458
|
+
rsUpper + "+" + rsOptUpperContr,
|
|
459
|
+
rsDigits,
|
|
460
|
+
rsEmoji
|
|
461
|
+
].join("|"), "g");
|
|
462
|
+
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
463
|
+
var deburredLetters = {
|
|
464
|
+
// Latin-1 Supplement block.
|
|
465
|
+
"\xC0": "A",
|
|
466
|
+
"\xC1": "A",
|
|
467
|
+
"\xC2": "A",
|
|
468
|
+
"\xC3": "A",
|
|
469
|
+
"\xC4": "A",
|
|
470
|
+
"\xC5": "A",
|
|
471
|
+
"\xE0": "a",
|
|
472
|
+
"\xE1": "a",
|
|
473
|
+
"\xE2": "a",
|
|
474
|
+
"\xE3": "a",
|
|
475
|
+
"\xE4": "a",
|
|
476
|
+
"\xE5": "a",
|
|
477
|
+
"\xC7": "C",
|
|
478
|
+
"\xE7": "c",
|
|
479
|
+
"\xD0": "D",
|
|
480
|
+
"\xF0": "d",
|
|
481
|
+
"\xC8": "E",
|
|
482
|
+
"\xC9": "E",
|
|
483
|
+
"\xCA": "E",
|
|
484
|
+
"\xCB": "E",
|
|
485
|
+
"\xE8": "e",
|
|
486
|
+
"\xE9": "e",
|
|
487
|
+
"\xEA": "e",
|
|
488
|
+
"\xEB": "e",
|
|
489
|
+
"\xCC": "I",
|
|
490
|
+
"\xCD": "I",
|
|
491
|
+
"\xCE": "I",
|
|
492
|
+
"\xCF": "I",
|
|
493
|
+
"\xEC": "i",
|
|
494
|
+
"\xED": "i",
|
|
495
|
+
"\xEE": "i",
|
|
496
|
+
"\xEF": "i",
|
|
497
|
+
"\xD1": "N",
|
|
498
|
+
"\xF1": "n",
|
|
499
|
+
"\xD2": "O",
|
|
500
|
+
"\xD3": "O",
|
|
501
|
+
"\xD4": "O",
|
|
502
|
+
"\xD5": "O",
|
|
503
|
+
"\xD6": "O",
|
|
504
|
+
"\xD8": "O",
|
|
505
|
+
"\xF2": "o",
|
|
506
|
+
"\xF3": "o",
|
|
507
|
+
"\xF4": "o",
|
|
508
|
+
"\xF5": "o",
|
|
509
|
+
"\xF6": "o",
|
|
510
|
+
"\xF8": "o",
|
|
511
|
+
"\xD9": "U",
|
|
512
|
+
"\xDA": "U",
|
|
513
|
+
"\xDB": "U",
|
|
514
|
+
"\xDC": "U",
|
|
515
|
+
"\xF9": "u",
|
|
516
|
+
"\xFA": "u",
|
|
517
|
+
"\xFB": "u",
|
|
518
|
+
"\xFC": "u",
|
|
519
|
+
"\xDD": "Y",
|
|
520
|
+
"\xFD": "y",
|
|
521
|
+
"\xFF": "y",
|
|
522
|
+
"\xC6": "Ae",
|
|
523
|
+
"\xE6": "ae",
|
|
524
|
+
"\xDE": "Th",
|
|
525
|
+
"\xFE": "th",
|
|
526
|
+
"\xDF": "ss",
|
|
527
|
+
// Latin Extended-A block.
|
|
528
|
+
"\u0100": "A",
|
|
529
|
+
"\u0102": "A",
|
|
530
|
+
"\u0104": "A",
|
|
531
|
+
"\u0101": "a",
|
|
532
|
+
"\u0103": "a",
|
|
533
|
+
"\u0105": "a",
|
|
534
|
+
"\u0106": "C",
|
|
535
|
+
"\u0108": "C",
|
|
536
|
+
"\u010A": "C",
|
|
537
|
+
"\u010C": "C",
|
|
538
|
+
"\u0107": "c",
|
|
539
|
+
"\u0109": "c",
|
|
540
|
+
"\u010B": "c",
|
|
541
|
+
"\u010D": "c",
|
|
542
|
+
"\u010E": "D",
|
|
543
|
+
"\u0110": "D",
|
|
544
|
+
"\u010F": "d",
|
|
545
|
+
"\u0111": "d",
|
|
546
|
+
"\u0112": "E",
|
|
547
|
+
"\u0114": "E",
|
|
548
|
+
"\u0116": "E",
|
|
549
|
+
"\u0118": "E",
|
|
550
|
+
"\u011A": "E",
|
|
551
|
+
"\u0113": "e",
|
|
552
|
+
"\u0115": "e",
|
|
553
|
+
"\u0117": "e",
|
|
554
|
+
"\u0119": "e",
|
|
555
|
+
"\u011B": "e",
|
|
556
|
+
"\u011C": "G",
|
|
557
|
+
"\u011E": "G",
|
|
558
|
+
"\u0120": "G",
|
|
559
|
+
"\u0122": "G",
|
|
560
|
+
"\u011D": "g",
|
|
561
|
+
"\u011F": "g",
|
|
562
|
+
"\u0121": "g",
|
|
563
|
+
"\u0123": "g",
|
|
564
|
+
"\u0124": "H",
|
|
565
|
+
"\u0126": "H",
|
|
566
|
+
"\u0125": "h",
|
|
567
|
+
"\u0127": "h",
|
|
568
|
+
"\u0128": "I",
|
|
569
|
+
"\u012A": "I",
|
|
570
|
+
"\u012C": "I",
|
|
571
|
+
"\u012E": "I",
|
|
572
|
+
"\u0130": "I",
|
|
573
|
+
"\u0129": "i",
|
|
574
|
+
"\u012B": "i",
|
|
575
|
+
"\u012D": "i",
|
|
576
|
+
"\u012F": "i",
|
|
577
|
+
"\u0131": "i",
|
|
578
|
+
"\u0134": "J",
|
|
579
|
+
"\u0135": "j",
|
|
580
|
+
"\u0136": "K",
|
|
581
|
+
"\u0137": "k",
|
|
582
|
+
"\u0138": "k",
|
|
583
|
+
"\u0139": "L",
|
|
584
|
+
"\u013B": "L",
|
|
585
|
+
"\u013D": "L",
|
|
586
|
+
"\u013F": "L",
|
|
587
|
+
"\u0141": "L",
|
|
588
|
+
"\u013A": "l",
|
|
589
|
+
"\u013C": "l",
|
|
590
|
+
"\u013E": "l",
|
|
591
|
+
"\u0140": "l",
|
|
592
|
+
"\u0142": "l",
|
|
593
|
+
"\u0143": "N",
|
|
594
|
+
"\u0145": "N",
|
|
595
|
+
"\u0147": "N",
|
|
596
|
+
"\u014A": "N",
|
|
597
|
+
"\u0144": "n",
|
|
598
|
+
"\u0146": "n",
|
|
599
|
+
"\u0148": "n",
|
|
600
|
+
"\u014B": "n",
|
|
601
|
+
"\u014C": "O",
|
|
602
|
+
"\u014E": "O",
|
|
603
|
+
"\u0150": "O",
|
|
604
|
+
"\u014D": "o",
|
|
605
|
+
"\u014F": "o",
|
|
606
|
+
"\u0151": "o",
|
|
607
|
+
"\u0154": "R",
|
|
608
|
+
"\u0156": "R",
|
|
609
|
+
"\u0158": "R",
|
|
610
|
+
"\u0155": "r",
|
|
611
|
+
"\u0157": "r",
|
|
612
|
+
"\u0159": "r",
|
|
613
|
+
"\u015A": "S",
|
|
614
|
+
"\u015C": "S",
|
|
615
|
+
"\u015E": "S",
|
|
616
|
+
"\u0160": "S",
|
|
617
|
+
"\u015B": "s",
|
|
618
|
+
"\u015D": "s",
|
|
619
|
+
"\u015F": "s",
|
|
620
|
+
"\u0161": "s",
|
|
621
|
+
"\u0162": "T",
|
|
622
|
+
"\u0164": "T",
|
|
623
|
+
"\u0166": "T",
|
|
624
|
+
"\u0163": "t",
|
|
625
|
+
"\u0165": "t",
|
|
626
|
+
"\u0167": "t",
|
|
627
|
+
"\u0168": "U",
|
|
628
|
+
"\u016A": "U",
|
|
629
|
+
"\u016C": "U",
|
|
630
|
+
"\u016E": "U",
|
|
631
|
+
"\u0170": "U",
|
|
632
|
+
"\u0172": "U",
|
|
633
|
+
"\u0169": "u",
|
|
634
|
+
"\u016B": "u",
|
|
635
|
+
"\u016D": "u",
|
|
636
|
+
"\u016F": "u",
|
|
637
|
+
"\u0171": "u",
|
|
638
|
+
"\u0173": "u",
|
|
639
|
+
"\u0174": "W",
|
|
640
|
+
"\u0175": "w",
|
|
641
|
+
"\u0176": "Y",
|
|
642
|
+
"\u0177": "y",
|
|
643
|
+
"\u0178": "Y",
|
|
644
|
+
"\u0179": "Z",
|
|
645
|
+
"\u017B": "Z",
|
|
646
|
+
"\u017D": "Z",
|
|
647
|
+
"\u017A": "z",
|
|
648
|
+
"\u017C": "z",
|
|
649
|
+
"\u017E": "z",
|
|
650
|
+
"\u0132": "IJ",
|
|
651
|
+
"\u0133": "ij",
|
|
652
|
+
"\u0152": "Oe",
|
|
653
|
+
"\u0153": "oe",
|
|
654
|
+
"\u0149": "'n",
|
|
655
|
+
"\u017F": "ss"
|
|
656
|
+
};
|
|
657
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
658
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
659
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
660
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
661
|
+
var index = -1, length = array ? array.length : 0;
|
|
662
|
+
if (initAccum && length) {
|
|
663
|
+
accumulator = array[++index];
|
|
664
|
+
}
|
|
665
|
+
while (++index < length) {
|
|
666
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
667
|
+
}
|
|
668
|
+
return accumulator;
|
|
669
|
+
}
|
|
670
|
+
function asciiWords(string) {
|
|
671
|
+
return string.match(reAsciiWord) || [];
|
|
672
|
+
}
|
|
673
|
+
function basePropertyOf(object) {
|
|
674
|
+
return function(key) {
|
|
675
|
+
return object == null ? void 0 : object[key];
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
var deburrLetter = basePropertyOf(deburredLetters);
|
|
679
|
+
function hasUnicodeWord(string) {
|
|
680
|
+
return reHasUnicodeWord.test(string);
|
|
681
|
+
}
|
|
682
|
+
function unicodeWords(string) {
|
|
683
|
+
return string.match(reUnicodeWord) || [];
|
|
684
|
+
}
|
|
685
|
+
var objectProto = Object.prototype;
|
|
686
|
+
var objectToString = objectProto.toString;
|
|
687
|
+
var Symbol2 = root.Symbol;
|
|
688
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
689
|
+
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
690
|
+
function baseToString(value) {
|
|
691
|
+
if (typeof value == "string") {
|
|
692
|
+
return value;
|
|
693
|
+
}
|
|
694
|
+
if (isSymbol(value)) {
|
|
695
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
696
|
+
}
|
|
697
|
+
var result = value + "";
|
|
698
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
699
|
+
}
|
|
700
|
+
function createCompounder(callback) {
|
|
701
|
+
return function(string) {
|
|
702
|
+
return arrayReduce(words(deburr(string).replace(reApos, "")), callback, "");
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
function isObjectLike(value) {
|
|
706
|
+
return !!value && typeof value == "object";
|
|
707
|
+
}
|
|
708
|
+
function isSymbol(value) {
|
|
709
|
+
return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
710
|
+
}
|
|
711
|
+
function toString(value) {
|
|
712
|
+
return value == null ? "" : baseToString(value);
|
|
713
|
+
}
|
|
714
|
+
function deburr(string) {
|
|
715
|
+
string = toString(string);
|
|
716
|
+
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
|
|
717
|
+
}
|
|
718
|
+
var kebabCase = createCompounder(function(result, word, index) {
|
|
719
|
+
return result + (index ? "-" : "") + word.toLowerCase();
|
|
720
|
+
});
|
|
721
|
+
function words(string, pattern, guard) {
|
|
722
|
+
string = toString(string);
|
|
723
|
+
pattern = guard ? void 0 : pattern;
|
|
724
|
+
if (pattern === void 0) {
|
|
725
|
+
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
726
|
+
}
|
|
727
|
+
return string.match(pattern) || [];
|
|
728
|
+
}
|
|
729
|
+
module.exports = kebabCase;
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
|
|
733
|
+
// ../design-tokens/src/lib/addExtraThemeEntries.ts
|
|
734
|
+
var import_color_string = __toESM(require_color_string());
|
|
735
|
+
|
|
736
|
+
// ../design-tokens/src/lib/cssVariables.ts
|
|
737
|
+
var import_lodash = __toESM(require_lodash());
|
|
738
|
+
var objectPathToCssVarIdentifier = (path) => `--${path.map(import_lodash.default).join("-")}`;
|
|
739
|
+
|
|
740
|
+
// ../design-tokens/src/lib/addExtraThemeEntries.ts
|
|
741
|
+
var addExtraThemeEntries = (path, key, value, printValue, {
|
|
742
|
+
augmentWithId
|
|
743
|
+
}) => {
|
|
744
|
+
const colorRgb = typeof value === "string" ? import_color_string.default.get.rgb(value) : null;
|
|
745
|
+
const result = {
|
|
746
|
+
[key]: printValue(path, value)
|
|
747
|
+
};
|
|
748
|
+
if (colorRgb) {
|
|
749
|
+
result[key] = printValue(path, value).toLowerCase();
|
|
750
|
+
const rgbPath = [...path, "rgb"];
|
|
751
|
+
const rgbTriple = printValue(rgbPath, colorRgb.slice(0, 3).join(", "));
|
|
752
|
+
result[`${key}-rgb`] = rgbTriple;
|
|
753
|
+
if (augmentWithId) {
|
|
754
|
+
result[`${key}-rgb-id`] = objectPathToCssVarIdentifier(rgbPath);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
if (augmentWithId) {
|
|
758
|
+
result[`${key}-id`] = objectPathToCssVarIdentifier(path);
|
|
759
|
+
}
|
|
760
|
+
return result;
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
// ../design-tokens/src/lib/mapLeafsOfObject.ts
|
|
764
|
+
function mapLeafsOfObject(object, mapper) {
|
|
765
|
+
const recurser = (currentPath, obj) => {
|
|
766
|
+
const handleEntry = (key, value) => {
|
|
767
|
+
const pathToKey = [...currentPath, key];
|
|
768
|
+
if (typeof value === "object" && value !== null && value !== void 0) {
|
|
769
|
+
return recurser(pathToKey, value);
|
|
770
|
+
}
|
|
771
|
+
return mapper(pathToKey, value);
|
|
772
|
+
};
|
|
773
|
+
return Object.entries(obj).reduce(
|
|
774
|
+
(acc, [nextKey, nextValue]) => ({
|
|
775
|
+
...acc,
|
|
776
|
+
[nextKey]: handleEntry(nextKey, nextValue)
|
|
777
|
+
}),
|
|
778
|
+
{}
|
|
779
|
+
);
|
|
780
|
+
};
|
|
781
|
+
return recurser([], object);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
// ../design-tokens/src/lib/makeCssVariableDefinitionsMap.ts
|
|
785
|
+
function makeCssVariableDefinitionsMap(theme) {
|
|
786
|
+
let accumulatedCssVariables = {};
|
|
787
|
+
mapLeafsOfObject(theme, (path, value) => {
|
|
788
|
+
const key = objectPathToCssVarIdentifier(path);
|
|
789
|
+
const nextCssVariables = addExtraThemeEntries(
|
|
790
|
+
path,
|
|
791
|
+
key,
|
|
792
|
+
value,
|
|
793
|
+
(_, v) => `${v}`,
|
|
794
|
+
{ augmentWithId: false }
|
|
795
|
+
);
|
|
796
|
+
accumulatedCssVariables = {
|
|
797
|
+
...accumulatedCssVariables,
|
|
798
|
+
...nextCssVariables
|
|
799
|
+
};
|
|
800
|
+
});
|
|
801
|
+
return accumulatedCssVariables;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
// src/KaizenProvider/ThemeProvider/ThemeManager.ts
|
|
805
|
+
var ThemeManager = class {
|
|
806
|
+
constructor(theme, rootElementId = "", apply = true) {
|
|
807
|
+
this.themeChangeListeners = [];
|
|
808
|
+
this.rootElement = null;
|
|
809
|
+
this.getRootElement = () => this.rootElement;
|
|
810
|
+
this.getRootElementId = () => this.rootElementId;
|
|
811
|
+
this.getCurrentTheme = () => this.theme;
|
|
812
|
+
this.setRootElement = (element) => {
|
|
813
|
+
this.rootElement = element;
|
|
814
|
+
};
|
|
815
|
+
this.setRootElementId = (rootElementId) => this.rootElementId = rootElementId;
|
|
816
|
+
this.setAndApplyTheme = (theme, force) => {
|
|
817
|
+
if (!force) {
|
|
818
|
+
if (this.theme === theme)
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
this.theme = theme;
|
|
822
|
+
this.applyCurrentTheme();
|
|
823
|
+
this.notifyThemeChangeListeners(theme);
|
|
824
|
+
};
|
|
825
|
+
this.addThemeChangeListener = (listener) => {
|
|
826
|
+
this.themeChangeListeners.push(listener);
|
|
827
|
+
};
|
|
828
|
+
this.removeThemeChangeListener = (listener) => {
|
|
829
|
+
this.themeChangeListeners = this.themeChangeListeners.filter(
|
|
830
|
+
(l) => l !== listener
|
|
831
|
+
);
|
|
832
|
+
};
|
|
833
|
+
this.applyCurrentTheme = () => {
|
|
834
|
+
if (typeof window !== "undefined") {
|
|
835
|
+
this.setRootElement(
|
|
836
|
+
document.getElementById(this.rootElementId) ?? document.documentElement
|
|
837
|
+
);
|
|
838
|
+
const cssVariableDefinitions = makeCssVariableDefinitionsMap(this.theme);
|
|
839
|
+
Object.entries(cssVariableDefinitions).forEach(([key, value]) => {
|
|
840
|
+
var _a;
|
|
841
|
+
(_a = this.rootElement) == null ? void 0 : _a.style.setProperty(key, value);
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
this.notifyThemeChangeListeners = (theme) => {
|
|
846
|
+
this.themeChangeListeners.forEach((listener) => listener(theme));
|
|
847
|
+
};
|
|
848
|
+
this.theme = theme;
|
|
849
|
+
this.rootElementId = rootElementId;
|
|
850
|
+
if (apply)
|
|
851
|
+
this.applyCurrentTheme();
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
})();
|