@handijit/ui 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +485 -571
- package/build/base.css +1 -1
- package/build/charts.cjs +1 -1
- package/build/charts.cjs.map +1 -1
- package/build/charts.css +1 -1
- package/build/charts.js +350 -349
- package/build/charts.js.map +1 -1
- package/build/chat.cjs +3 -3
- package/build/chat.cjs.map +1 -1
- package/build/chat.css +1 -1
- package/build/chat.js +344 -343
- package/build/chat.js.map +1 -1
- package/build/components/Accordion/style.css +1 -1
- package/build/components/Alert/style.css +1 -1
- package/build/components/Avatar/style.css +1 -1
- package/build/components/Badge/index.cjs +1 -1
- package/build/components/Badge/index.cjs.map +1 -1
- package/build/components/Badge/index.d.ts +8 -13
- package/build/components/Badge/index.js +1 -1
- package/build/components/Badge/index.js.map +1 -1
- package/build/components/Badge/style.css +1 -1
- package/build/components/BottomSheet/style.css +1 -1
- package/build/components/Breadcrumb/style.css +1 -1
- package/build/components/Button/index.cjs +1 -1
- package/build/components/Button/index.cjs.map +1 -1
- package/build/components/Button/index.js +2 -2
- package/build/components/Button/index.js.map +1 -1
- package/build/components/Button/style.css +1 -1
- package/build/components/Card/style.css +1 -1
- package/build/components/Carousel/style.css +1 -1
- package/build/components/Checkbox/style.css +1 -1
- package/build/components/Chip/style.css +1 -1
- package/build/components/ChipGroup/style.css +1 -1
- package/build/components/CodeBadge/style.css +1 -1
- package/build/components/Combobox/index.cjs +1 -1
- package/build/components/Combobox/index.cjs.map +1 -1
- package/build/components/Combobox/index.js +51 -51
- package/build/components/Combobox/index.js.map +1 -1
- package/build/components/Combobox/style.css +1 -1
- package/build/components/CommandPalette/style.css +1 -1
- package/build/components/CopyField/style.css +1 -1
- package/build/components/DataTable/style.css +1 -1
- package/build/components/DateField/index.d.ts +1 -1
- package/build/components/DateField/style.css +1 -1
- package/build/components/Directory/style.css +1 -1
- package/build/components/Disclosure/style.css +1 -1
- package/build/components/Divider/style.css +1 -1
- package/build/components/Drawer/style.css +1 -1
- package/build/components/EmptyState/style.css +1 -1
- package/build/components/Field/style.css +1 -1
- package/build/components/FileUpload/style.css +1 -1
- package/build/components/FilterBar/style.css +1 -1
- package/build/components/IconButton/index.cjs +1 -1
- package/build/components/IconButton/index.cjs.map +1 -1
- package/build/components/IconButton/index.d.ts +2 -2
- package/build/components/IconButton/index.js +1 -1
- package/build/components/IconButton/index.js.map +1 -1
- package/build/components/IconButton/style.css +1 -1
- package/build/components/Input/index.d.ts +1 -1
- package/build/components/Input/style.css +1 -1
- package/build/components/Kbd/style.css +1 -1
- package/build/components/Menu/style.css +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/PageHeader/style.css +1 -1
- package/build/components/Pagination/style.css +1 -1
- package/build/components/Panel/style.css +1 -1
- package/build/components/PasswordInput/style.css +1 -1
- package/build/components/Popover/style.css +1 -1
- package/build/components/Price/style.css +1 -1
- package/build/components/Progress/style.css +1 -1
- package/build/components/PromptDialog/style.css +1 -1
- package/build/components/QuantityStepper/style.css +1 -1
- package/build/components/Radio/style.css +1 -1
- package/build/components/RadioCard/style.css +1 -1
- package/build/components/RangeSlider/style.css +1 -1
- package/build/components/Rating/style.css +1 -1
- package/build/components/RatingInput/style.css +1 -1
- package/build/components/ScrollArea/style.css +1 -1
- package/build/components/SectionHeader/style.css +1 -1
- package/build/components/SegmentedControl/style.css +1 -1
- package/build/components/Select/index.cjs +1 -1
- package/build/components/Select/index.cjs.map +1 -1
- package/build/components/Select/index.js +28 -28
- package/build/components/Select/index.js.map +1 -1
- package/build/components/Select/style.css +1 -1
- package/build/components/Skeleton/style.css +1 -1
- package/build/components/Spinner/style.css +1 -1
- package/build/components/Stat/style.css +1 -1
- package/build/components/StatusDot/style.css +1 -1
- package/build/components/Steps/style.css +1 -1
- package/build/components/SummaryCard/style.css +1 -1
- package/build/components/Switch/index.d.ts +1 -1
- package/build/components/Switch/style.css +1 -1
- package/build/components/Table/style.css +1 -1
- package/build/components/TableCheckbox/style.css +1 -1
- package/build/components/Tabs/style.css +1 -1
- package/build/components/TagInput/style.css +1 -1
- package/build/components/TextLink/style.css +1 -1
- package/build/components/Textarea/style.css +1 -1
- package/build/components/Tile/style.css +1 -1
- package/build/components/Timeline/style.css +1 -1
- package/build/components/Toast/style.css +1 -1
- package/build/components/Tooltip/style.css +1 -1
- package/build/constants/breakpoint.constants.cjs +1 -1
- package/build/constants/breakpoint.constants.cjs.map +1 -1
- package/build/constants/breakpoint.constants.d.ts +13 -8
- package/build/constants/breakpoint.constants.js +7 -5
- package/build/constants/breakpoint.constants.js.map +1 -1
- package/build/enums/ui-size.enum.cjs.map +1 -1
- package/build/enums/ui-size.enum.d.ts +5 -2
- package/build/enums/ui-size.enum.js.map +1 -1
- package/build/enums/ui-variant.enum.cjs +1 -1
- package/build/enums/ui-variant.enum.cjs.map +1 -1
- package/build/enums/ui-variant.enum.d.ts +13 -13
- package/build/enums/ui-variant.enum.js +1 -1
- package/build/enums/ui-variant.enum.js.map +1 -1
- package/build/helpers/theme.helper.cjs +1 -23
- package/build/helpers/theme.helper.cjs.map +1 -1
- package/build/helpers/theme.helper.d.ts +13 -44
- package/build/helpers/theme.helper.js +31 -69
- package/build/helpers/theme.helper.js.map +1 -1
- package/build/hooks/useUiTheme.cjs +1 -1
- package/build/hooks/useUiTheme.cjs.map +1 -1
- package/build/hooks/useUiTheme.d.ts +4 -1
- package/build/hooks/useUiTheme.js +34 -28
- package/build/hooks/useUiTheme.js.map +1 -1
- package/build/hooks/useUiTokens.cjs +1 -1
- package/build/hooks/useUiTokens.cjs.map +1 -1
- package/build/hooks/useUiTokens.d.ts +8 -8
- package/build/hooks/useUiTokens.js +24 -27
- package/build/hooks/useUiTokens.js.map +1 -1
- package/build/index.cjs +1 -1
- package/build/index.d.ts +3 -5
- package/build/index.js +194 -202
- package/build/index.js.map +1 -1
- package/build/scss/_index.scss +4 -3
- package/build/scss/_mixins.scss +264 -146
- package/build/scss/_variables.scss +216 -24
- package/build/styles.css +67 -67
- package/build/theme/UiProvider.cjs +1 -1
- package/build/theme/UiProvider.cjs.map +1 -1
- package/build/theme/UiProvider.d.ts +10 -9
- package/build/theme/UiProvider.js +7 -25
- package/build/theme/UiProvider.js.map +1 -1
- package/build/theme/UiThemeScript.cjs +1 -1
- package/build/theme/UiThemeScript.cjs.map +1 -1
- package/build/theme/UiThemeScript.d.ts +13 -10
- package/build/theme/UiThemeScript.js +2 -2
- package/build/theme/UiThemeScript.js.map +1 -1
- package/build/theme/context.js +2 -2
- package/build/types/charts/core/palette.d.ts +6 -8
- package/build/types/chat/Legend/index.d.ts +3 -2
- package/build/types/theme.type.d.ts +6 -48
- package/build/types/types/theme.type.d.ts +6 -48
- package/package.json +10 -10
- package/build/scss/_colors.generated.scss +0 -119
- package/build/scss/_metrics.generated.scss +0 -49
- package/build/theme/initUi.cjs +0 -2
- package/build/theme/initUi.cjs.map +0 -1
- package/build/theme/initUi.d.ts +0 -7
- package/build/theme/initUi.js +0 -10
- package/build/theme/initUi.js.map +0 -1
- package/build/theme/palette.cjs +0 -2
- package/build/theme/palette.cjs.map +0 -1
- package/build/theme/palette.d.ts +0 -219
- package/build/theme/palette.js +0 -148
- package/build/theme/palette.js.map +0 -1
- package/build/theme/tokens.cjs +0 -2
- package/build/theme/tokens.cjs.map +0 -1
- package/build/theme/tokens.d.ts +0 -225
- package/build/theme/tokens.js +0 -384
- package/build/theme/tokens.js.map +0 -1
- package/build/types/theme/palette.d.ts +0 -219
- package/build/types/theme/tokens.d.ts +0 -225
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-switch-KLH29{display:flex;align-items:flex-start;gap:var(--
|
|
1
|
+
@layer ui{.ui-switch-KLH29{display:flex;align-items:flex-start;gap:var(--hd-space-3);cursor:pointer;padding:var(--hd-space-2);margin-inline:calc(-1 * var(--hd-space-2));border-radius:var(--hd-radius-xs);transition:background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-switch-KLH29:hover{background-color:var(--hd-bg-raised)}.ui-switch-KLH29:has(.ui-switch__input-Q2UQ4:focus-visible){outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 2px)}@media (prefers-reduced-motion: reduce){.ui-switch-KLH29{transition:none}}.ui-switch--labelFirst-Grirk{flex-direction:row-reverse;justify-content:space-between}.ui-switch-KLH29:has(.ui-switch__input-Q2UQ4:disabled){cursor:not-allowed}.ui-switch-KLH29:has(.ui-switch__input-Q2UQ4:disabled) .ui-switch__label-gPZuO,.ui-switch-KLH29:has(.ui-switch__input-Q2UQ4:disabled) .ui-switch__hint-NRuzC{color:var(--hd-text-3)}@media (forced-colors: active){.ui-switch-KLH29:has(.ui-switch__input-Q2UQ4:disabled) .ui-switch__label-gPZuO,.ui-switch-KLH29:has(.ui-switch__input-Q2UQ4:disabled) .ui-switch__hint-NRuzC{color:GrayText}}.ui-switch-KLH29:has(.ui-switch__input-Q2UQ4:disabled):hover{background-color:transparent}.ui-switch__input-Q2UQ4{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ui-switch__track-3417m{flex-shrink:0;width:40px;height:24px;border-radius:var(--hd-radius-pill);background-color:var(--hd-text-3);border:1px solid transparent;transition:background-color var(--hd-duration-fast) var(--hd-ease-standard),border-color var(--hd-duration-fast) var(--hd-ease-standard);position:relative}.ui-switch__track-3417m:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}@media (prefers-reduced-motion: reduce){.ui-switch__track-3417m{transition:none}}.ui-switch__thumb-1LHta{position:absolute;top:2px;inset-inline-start:2px;width:18px;height:18px;border-radius:var(--hd-radius-pill);background-color:var(--hd-bg-surface);box-shadow:var(--hd-shadow-1);transition:translate var(--hd-duration-fast) var(--hd-ease-standard),background-color var(--hd-duration-fast) var(--hd-ease-standard)}@media (prefers-reduced-motion: reduce){.ui-switch__thumb-1LHta{transition:none}}.ui-switch__input-Q2UQ4:checked+.ui-switch__track-3417m{background-color:var(--hd-primary)}.ui-switch__input-Q2UQ4:checked+.ui-switch__track-3417m .ui-switch__thumb-1LHta{background-color:var(--hd-on-primary);translate:16px 0}[dir=rtl] .ui-switch__input-Q2UQ4:checked+.ui-switch__track-3417m .ui-switch__thumb-1LHta{translate:-16px 0}.ui-switch__input-Q2UQ4:disabled+.ui-switch__track-3417m{background-color:var(--hd-bg-disabled);border-color:var(--hd-border-strong)}.ui-switch__input-Q2UQ4:disabled+.ui-switch__track-3417m .ui-switch__thumb-1LHta{background-color:var(--hd-text-disabled);box-shadow:none}.ui-switch__input-Q2UQ4:checked:disabled+.ui-switch__track-3417m{background-color:var(--hd-text-disabled);border-color:transparent}.ui-switch__input-Q2UQ4:checked:disabled+.ui-switch__track-3417m .ui-switch__thumb-1LHta{background-color:var(--hd-bg-surface)}@media (forced-colors: active){.ui-switch__track-3417m{border-color:ButtonBorder}.ui-switch__thumb-1LHta{background-color:ButtonText}.ui-switch__input-Q2UQ4:checked+.ui-switch__track-3417m{border-color:Highlight}.ui-switch__input-Q2UQ4:checked+.ui-switch__track-3417m .ui-switch__thumb-1LHta{background-color:Highlight}.ui-switch__input-Q2UQ4:disabled+.ui-switch__track-3417m{border-color:GrayText}.ui-switch__input-Q2UQ4:disabled+.ui-switch__track-3417m .ui-switch__thumb-1LHta{background-color:GrayText}}.ui-switch__text-32uMY{display:flex;flex-direction:column;gap:2px;min-width:0}.ui-switch__label-gPZuO{font-size:var(--hd-type-small-size);color:var(--hd-text)}.ui-switch__hint-NRuzC{font-size:var(--hd-type-caption-size);color:var(--hd-text-2)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-scroller-EtDmS{position:relative;overflow:auto;min-width:0;align-self:stretch;scrollbar-width:thin;scrollbar-color:var(--
|
|
1
|
+
@layer ui{.ui-scroller-EtDmS{position:relative;overflow:auto;min-width:0;align-self:stretch;scrollbar-width:thin;scrollbar-color:var(--hd-border-strong) transparent}.ui-scroller-EtDmS::-webkit-scrollbar{width:8px;height:8px}.ui-scroller-EtDmS::-webkit-scrollbar-track{background:transparent}.ui-scroller-EtDmS::-webkit-scrollbar-thumb{background-color:var(--hd-border-strong);border-radius:var(--hd-radius-pill);border:2px solid transparent;background-clip:content-box}.ui-scroller-EtDmS::-webkit-scrollbar-thumb:hover{background-color:var(--hd-text-3)}.ui-scroller--frame-84zz6{border:1px solid var(--hd-border);border-radius:var(--hd-radius-md);background-color:var(--hd-bg-surface)}.ui-table-uCv4q{width:100%;border-collapse:collapse;font-size:var(--hd-type-small-size)}.ui-table-uCv4q th,.ui-table-uCv4q td{text-align:start;border-bottom:1px solid var(--hd-border)}.ui-table-uCv4q tbody tr:last-child>*{border-bottom:none}.ui-table--compact-4KCVl th,.ui-table--compact-4KCVl td{padding:var(--hd-space-2) var(--hd-space-3)}.ui-table--regular-hsA3- th,.ui-table--regular-hsA3- td{padding:var(--hd-space-3)}.ui-table--spacious-BBUX- th,.ui-table--spacious-BBUX- td{padding:var(--hd-space-3) var(--hd-space-4)}.ui-table--sticky-head-FO2L4 thead th{position:sticky;top:0;z-index:var(--hd-z-raised);background-color:var(--hd-bg-raised);font-family:var(--hd-font-body);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);text-transform:uppercase;letter-spacing:.045em;color:var(--hd-text-2);white-space:nowrap}.ui-table--row-hover--MAoe tbody tr:hover>td{background-color:var(--hd-bg-raised)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-checkbox--dvpB{width:18px;height:18px;margin:0;
|
|
1
|
+
@layer ui{.ui-checkbox--dvpB{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-grid;place-content:center;flex-shrink:0;width:18px;height:18px;margin:0;border:1.5px solid var(--hd-text-3);border-radius:var(--hd-radius-xs);background-color:var(--hd-bg-surface);cursor:pointer;transition:background-color var(--hd-duration-fast) var(--hd-ease-standard),border-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-checkbox--dvpB:before{content:"";width:10px;height:10px;background-color:var(--hd-on-primary);scale:0;transition:scale var(--hd-duration-fast) var(--hd-ease-standard);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}.ui-checkbox--dvpB:hover:not(:disabled){border-color:var(--hd-text-2)}.ui-checkbox--dvpB:checked,.ui-checkbox--dvpB:indeterminate{background-color:var(--hd-primary);border-color:var(--hd-primary)}.ui-checkbox--dvpB:checked:before,.ui-checkbox--dvpB:indeterminate:before{scale:1}.ui-checkbox--dvpB:checked:hover:not(:disabled),.ui-checkbox--dvpB:indeterminate:hover:not(:disabled){background-color:var(--hd-primary-hover);border-color:var(--hd-primary-hover)}.ui-checkbox--dvpB:indeterminate:before{clip-path:inset(40% 5%)}.ui-checkbox--dvpB:disabled{background-color:var(--hd-bg-disabled);border-color:var(--hd-border-strong);cursor:not-allowed}.ui-checkbox--dvpB:checked:disabled,.ui-checkbox--dvpB:indeterminate:disabled{background-color:var(--hd-text-disabled);border-color:transparent}.ui-checkbox--dvpB:checked:disabled:before,.ui-checkbox--dvpB:indeterminate:disabled:before{background-color:var(--hd-bg-surface)}@media (prefers-reduced-motion: reduce){.ui-checkbox--dvpB{transition:none}.ui-checkbox--dvpB:before{transition:none}}@media (forced-colors: active){.ui-checkbox--dvpB{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.ui-checkbox--dvpB:before{display:none}}.ui-checkbox--dvpB{position:relative}.ui-checkbox--dvpB:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-checkbox--dvpB:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 2px)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-tabs-l4dFE{display:flex;flex-direction:column;gap:var(--
|
|
1
|
+
@layer ui{.ui-tabs-l4dFE{display:flex;flex-direction:column;gap:var(--hd-space-5)}.ui-tabs__list-HJvR8{display:flex;gap:var(--hd-space-1);position:relative;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding-block:var(--hd-space-1) var(--hd-space-3);scrollbar-width:none;-ms-overflow-style:none}.ui-tabs__list-HJvR8::-webkit-scrollbar{display:none}.ui-tabs__list-HJvR8>*{scroll-snap-align:start;flex-shrink:0}.ui-tabs__list-HJvR8{border-bottom:1px solid var(--hd-border)}.ui-tabs__tab-7gDW7{position:relative}.ui-tabs__tab-7gDW7:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-tabs__tab-7gDW7{display:inline-flex;align-items:center;gap:var(--hd-space-2);font-family:var(--hd-font-body);font-size:var(--hd-type-small-size);font-weight:var(--ui-tab-weight, var(--hd-font-weight-medium));color:var(--hd-text-2);background:none;border:none;padding:var(--hd-space-3) var(--hd-space-4);cursor:pointer;white-space:nowrap;position:relative;transition:color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-tabs__tab-7gDW7:hover{color:var(--hd-text)}.ui-tabs__tab-7gDW7:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, -2px)}.ui-tabs__tab-7gDW7:before{content:"";position:absolute;inset-inline:var(--hd-space-3);bottom:-1px;height:2px;background-color:transparent;border-radius:var(--hd-radius-xs) var(--hd-radius-xs) 0 0;transition:background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-tabs__tab--active-riqNp{color:var(--hd-text);font-weight:var(--hd-font-weight-semibold)}.ui-tabs__tab--active-riqNp:before{background-color:var(--hd-primary)}@media (prefers-reduced-motion: reduce){.ui-tabs__tab-7gDW7{transition:none}.ui-tabs__tab-7gDW7:before{transition:none}}.ui-tabs__count-8JX8s{font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text-2);background-color:var(--hd-bg-inset);border-radius:var(--hd-radius-pill);padding:1px var(--hd-space-2);font-variant-numeric:tabular-nums}.ui-tabs__panel-CPklY:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 4px);border-radius:var(--hd-radius-xs)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-tagInput-QraZR{width:100%;font-family:var(--
|
|
1
|
+
@layer ui{.ui-tagInput-QraZR{width:100%;font-family:var(--hd-font-body);font-size:var(--hd-type-body-size);line-height:var(--hd-type-h4-line-height);color:var(--hd-text);background-color:var(--hd-bg-surface);border:1px solid var(--hd-border-strong);border-radius:var(--hd-radius-sm);padding:var(--hd-space-2) var(--hd-space-3);min-height:40px}@media (max-width: 640px){.ui-tagInput-QraZR{min-height:44px;font-size:max(16px,var(--hd-type-body-size))}}@media (hover: none) and (pointer: coarse){.ui-tagInput-QraZR{min-height:44px;font-size:max(16px,var(--hd-type-body-size))}}.ui-tagInput-QraZR{transition:border-color var(--hd-duration-fast) var(--hd-ease-standard),box-shadow var(--hd-duration-fast) var(--hd-ease-standard)}.ui-tagInput-QraZR::placeholder{color:var(--ui-placeholder, var(--hd-text-3))}.ui-tagInput-QraZR:hover:not(:disabled):not([aria-invalid=true]){border-color:color-mix(in oklab,var(--hd-border-strong),var(--hd-text) 30%)}.ui-tagInput-QraZR:focus{outline:none;border-color:var(--hd-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--hd-focus) 32%,transparent)}.ui-tagInput-QraZR:disabled{background-color:var(--hd-bg-raised);border-color:var(--hd-border);cursor:not-allowed;color:var(--hd-text-3)}@media (forced-colors: active){.ui-tagInput-QraZR:disabled{color:GrayText;border-color:GrayText}}.ui-tagInput-QraZR[aria-invalid=true]{border-color:var(--hd-danger-solid)}.ui-tagInput-QraZR[aria-invalid=true]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--hd-danger-solid) 28%,transparent)}@media (prefers-reduced-motion: reduce){.ui-tagInput-QraZR{transition:none}}.ui-tagInput-QraZR{display:flex;flex-wrap:wrap;align-items:center;gap:var(--hd-space-1);padding:var(--hd-space-1) var(--hd-space-2);cursor:text}.ui-tagInput-QraZR:has(.ui-tagInput__field-HeWrC:focus-visible){border-color:var(--hd-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--hd-focus) 32%,transparent)}.ui-tagInput--invalid-NQogL{border-color:var(--hd-danger-solid)}.ui-tagInput--disabled--AJFF{background-color:var(--hd-bg-raised);cursor:not-allowed}.ui-tagInput__tag-D-ZWB{display:flex;align-items:center;gap:var(--hd-space-1);flex-shrink:0;padding:2px var(--hd-space-1) 2px var(--hd-space-2);border-radius:var(--hd-radius-xs);background-color:var(--hd-bg-raised);border:1px solid var(--hd-border);font-size:var(--hd-type-caption-size);color:var(--hd-text);transition:background-color var(--hd-duration-fast) var(--hd-ease-standard),border-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-tagInput__tag--duplicate-3-FMF{background-color:var(--hd-warning-bg);border-color:var(--hd-warning-line)}@media (prefers-reduced-motion: reduce){.ui-tagInput__tag-D-ZWB{transition:none}}.ui-tagInput__remove-bpjGG{position:relative}.ui-tagInput__remove-bpjGG:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,28px);height:max(100%,28px)}.ui-tagInput__remove-bpjGG{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;padding:0;border:none;border-radius:var(--hd-radius-xs);background:none;cursor:pointer;color:var(--hd-text-2);font-size:var(--hd-type-caption-size)}.ui-tagInput__remove-bpjGG:hover:not(:disabled){background-color:var(--hd-bg-inset);color:var(--hd-text)}.ui-tagInput__remove-bpjGG:disabled{cursor:not-allowed}.ui-tagInput__remove-bpjGG:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 1px)}.ui-tagInput__field-HeWrC{flex:1;min-width:100px;border:none;background:none;padding:var(--hd-space-1) 0;font-family:var(--hd-font-body);font-size:var(--hd-type-small-size);color:var(--hd-text)}@media (hover: none) and (pointer: coarse){.ui-tagInput__field-HeWrC{font-size:max(16px,var(--hd-type-body-size))}}.ui-tagInput__field-HeWrC::placeholder{color:var(--hd-text-3)}.ui-tagInput__field-HeWrC:focus{outline:none}.ui-tagInput__field-HeWrC:disabled{cursor:not-allowed}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-link-WBmXY{display:inline-flex;align-items:center;gap:var(--
|
|
1
|
+
@layer ui{.ui-link-WBmXY{display:inline-flex;align-items:center;gap:var(--hd-space-2);font-weight:var(--hd-font-weight-medium);text-decoration:none;border-radius:var(--hd-radius-xs);transition:color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-link-WBmXY:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 3px)}@media (prefers-reduced-motion: reduce){.ui-link-WBmXY{transition:none}}.ui-link__label--OEu-{text-underline-offset:3px}[dir=rtl] .ui-link__arrow-JKXm-{transform:scaleX(-1)}.ui-link__arrow-JKXm-{font-size:1em;flex-shrink:0;transition:transform var(--hd-duration-fast) var(--hd-ease-standard)}@media (prefers-reduced-motion: reduce){.ui-link__arrow-JKXm-{transition:none}}.ui-link-WBmXY:hover .ui-link__label--OEu-{text-decoration:underline}.ui-link-WBmXY:hover .ui-link__arrow-JKXm-{transform:translate(3px)}[dir=rtl] .ui-link-WBmXY:hover .ui-link__arrow-JKXm-{transform:scaleX(-1) translate(3px)}.ui-link--sm-a-3Dz{font-size:var(--hd-type-caption-size)}.ui-link--md-lZdYP{font-size:var(--hd-type-small-size)}.ui-link--brand-vr8sW,.ui-link--brand-vr8sW:hover{color:var(--hd-primary-text)}.ui-link--muted-EeN6l{color:var(--hd-text-2)}.ui-link--muted-EeN6l:hover{color:var(--hd-text)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-textarea-zwJcB{width:100%;font-family:var(--
|
|
1
|
+
@layer ui{.ui-textarea-zwJcB{width:100%;font-family:var(--hd-font-body);font-size:var(--hd-type-body-size);line-height:var(--hd-type-h4-line-height);color:var(--hd-text);background-color:var(--hd-bg-surface);border:1px solid var(--hd-border-strong);border-radius:var(--hd-radius-sm);padding:var(--hd-space-2) var(--hd-space-3);min-height:40px}@media (max-width: 640px){.ui-textarea-zwJcB{min-height:44px;font-size:max(16px,var(--hd-type-body-size))}}@media (hover: none) and (pointer: coarse){.ui-textarea-zwJcB{min-height:44px;font-size:max(16px,var(--hd-type-body-size))}}.ui-textarea-zwJcB{transition:border-color var(--hd-duration-fast) var(--hd-ease-standard),box-shadow var(--hd-duration-fast) var(--hd-ease-standard)}.ui-textarea-zwJcB::placeholder{color:var(--ui-placeholder, var(--hd-text-3))}.ui-textarea-zwJcB:hover:not(:disabled):not([aria-invalid=true]){border-color:color-mix(in oklab,var(--hd-border-strong),var(--hd-text) 30%)}.ui-textarea-zwJcB:focus{outline:none;border-color:var(--hd-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--hd-focus) 32%,transparent)}.ui-textarea-zwJcB:disabled{background-color:var(--hd-bg-raised);border-color:var(--hd-border);cursor:not-allowed;color:var(--hd-text-3)}@media (forced-colors: active){.ui-textarea-zwJcB:disabled{color:GrayText;border-color:GrayText}}.ui-textarea-zwJcB[aria-invalid=true]{border-color:var(--hd-danger-solid)}.ui-textarea-zwJcB[aria-invalid=true]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--hd-danger-solid) 28%,transparent)}@media (prefers-reduced-motion: reduce){.ui-textarea-zwJcB{transition:none}}.ui-textarea-zwJcB{resize:vertical;min-height:96px;line-height:var(--hd-type-body-line-height)}.ui-wrapper-O8aJA{display:flex;flex-direction:column;gap:var(--hd-space-1);width:100%}.ui-textarea--bare-IjCIn{min-height:0;padding:0;border:0;border-radius:0;background-color:transparent;box-shadow:none}.ui-textarea--bare-IjCIn:hover:not(:disabled):not([aria-invalid=true]),.ui-textarea--bare-IjCIn:focus,.ui-textarea--bare-IjCIn:disabled{border:0;background-color:transparent;box-shadow:none}.ui-textarea--autoSize--F8yj{resize:none;overflow-y:hidden}.ui-counter-bHVh3{align-self:flex-end;font-size:var(--hd-type-caption-size);color:var(--hd-text-3);font-variant-numeric:tabular-nums}.ui-counter--near-AZAQm{color:var(--hd-warning-fg);font-weight:var(--hd-font-weight-semibold)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-tile-TGur-{background-color:var(--
|
|
1
|
+
@layer ui{.ui-tile-TGur-{background-color:var(--hd-bg-surface);border:1px solid var(--hd-border);border-radius:var(--hd-radius-md)}@media (max-width: 640px){.ui-tile-TGur-{border-radius:var(--hd-radius-sm)}}.ui-tile-TGur-{transition:border-color var(--hd-duration-fast) var(--hd-ease-standard),box-shadow var(--hd-duration-fast) var(--hd-ease-standard),transform var(--hd-duration-fast) var(--hd-ease-standard)}.ui-tile-TGur-:hover{border-color:var(--hd-border-strong);box-shadow:var(--hd-shadow-2);transform:translateY(-2px)}.ui-tile-TGur-:active{transform:translateY(0);box-shadow:var(--hd-shadow-1)}@media (prefers-reduced-motion: reduce){.ui-tile-TGur-{transition:none}.ui-tile-TGur-:hover,.ui-tile-TGur-:active{transform:none}}.ui-tile-TGur-{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--hd-space-2);padding:var(--hd-space-5) var(--hd-space-3);text-align:center;text-decoration:none;color:inherit;height:100%}.ui-tile-TGur-:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 2px)}.ui-tile__medallion--Y0pz{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:var(--hd-radius-pill);background-color:var(--hd-bg-raised);color:var(--hd-text-2);font-size:var(--hd-type-h3-size);flex-shrink:0;transition:background-color var(--hd-duration-fast) var(--hd-ease-standard),color var(--hd-duration-fast) var(--hd-ease-standard)}@media (prefers-reduced-motion: reduce){.ui-tile__medallion--Y0pz{transition:none}}.ui-tile__label-mI1OQ{font-family:var(--hd-font-display);font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-semibold);line-height:var(--hd-type-h4-line-height);color:var(--hd-text)}.ui-tile__meta-22qnR{font-size:var(--hd-type-caption-size);color:var(--hd-text-2);font-variant-numeric:tabular-nums}.ui-tile-TGur-:hover .ui-tile__medallion--Y0pz{background-color:var(--hd-primary-soft);color:var(--hd-text)}.ui-tile--active-z0F2M{border-color:var(--hd-primary-line)}.ui-tile--active-z0F2M .ui-tile__medallion--Y0pz{background-color:var(--hd-primary);color:var(--hd-on-primary)}.ui-tile--active-z0F2M .ui-tile__label-mI1OQ{color:var(--hd-text)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-timeline-GxubZ{display:flex;flex-direction:column;gap:var(--
|
|
1
|
+
@layer ui{.ui-timeline-GxubZ{display:flex;flex-direction:column;gap:var(--hd-space-0);margin:0;padding:0;list-style:none}.ui-timeline__item-qMpF2{display:flex;gap:var(--hd-space-3);padding-bottom:var(--hd-space-4);position:relative}.ui-timeline__item-qMpF2:not(:last-child):before{content:"";position:absolute;inset-block-start:26px;inset-block-end:0;inset-inline-start:11px;width:2px;background-color:var(--hd-border)}.ui-timeline__item-qMpF2:last-child{padding-bottom:0}.ui-timeline__marker-MDk07{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;border-radius:var(--hd-radius-pill);border:2px solid var(--hd-border-strong);background-color:var(--hd-bg-surface);color:var(--hd-success-on-solid);font-size:var(--hd-type-caption-size);z-index:var(--hd-z-raised)}.ui-timeline__item--done-dqiOQ .ui-timeline__marker-MDk07{background-color:var(--hd-success-solid);border-color:var(--hd-success-solid)}.ui-timeline__item--current-TGV5f .ui-timeline__marker-MDk07{border-color:var(--hd-primary);box-shadow:inset 0 0 0 3px var(--hd-primary)}.ui-timeline__item--pending-VMZTS .ui-timeline__marker-MDk07{border-style:dashed;background-color:var(--hd-bg-surface)}.ui-timeline__item--failed-2BbfX .ui-timeline__marker-MDk07{background-color:var(--hd-danger-solid);border-color:var(--hd-danger-solid);color:var(--hd-danger-on-solid)}@media (forced-colors: active){.ui-timeline__item--done-dqiOQ .ui-timeline__marker-MDk07,.ui-timeline__item--current-TGV5f .ui-timeline__marker-MDk07,.ui-timeline__item--failed-2BbfX .ui-timeline__marker-MDk07{background-color:Highlight;border-color:Highlight;forced-color-adjust:none}}.ui-timeline__body-xJi7t{display:flex;flex-direction:column;gap:2px;min-width:0;padding-block-start:1px}.ui-timeline__title-pKxZJ{font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text)}.ui-timeline__item--pending-VMZTS .ui-timeline__title-pKxZJ{color:var(--hd-text-2);font-weight:var(--hd-font-weight-medium)}.ui-timeline__item--failed-2BbfX .ui-timeline__title-pKxZJ{color:var(--hd-danger-fg)}.ui-timeline__time-ITWYy{font-size:var(--hd-type-caption-size);color:var(--hd-text-3);font-variant-numeric:tabular-nums}.ui-timeline__description-4vrEy{font-size:var(--hd-type-caption-size);line-height:var(--hd-type-body-line-height);color:var(--hd-text-2)}.ui-timeline__srOnly-7K2We{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-hub-JoqOf{position:fixed;inset-inline:0;bottom:0;z-index:
|
|
1
|
+
@layer ui{.ui-hub-JoqOf{position:fixed;inset-inline:0;bottom:0;z-index:var(--hd-z-toast);display:flex;flex-direction:column;align-items:center;gap:var(--hd-space-2);padding:var(--hd-space-4);pointer-events:none;padding-bottom:max(var(--hd-space-4),env(safe-area-inset-bottom,0px) - max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px)))}@media (min-width: 1025px){.ui-hub-JoqOf{align-items:flex-end}}.ui-toast-U27Of{display:flex;align-items:flex-start;gap:var(--hd-space-3);pointer-events:auto;width:100%;max-width:420px;padding:var(--hd-space-3);border-radius:var(--hd-radius-sm);background-color:var(--hd-bg-overlay);border:1px solid var(--hd-border);box-shadow:var(--hd-shadow-2);animation:var(--ui-anim-fade-in-up) var(--hd-duration-base) var(--hd-ease-standard)}@media (prefers-reduced-motion: reduce){.ui-toast-U27Of{animation:none}}.ui-toast--info-S1QJr{border-inline-start:3px solid var(--hd-primary)}.ui-toast--success-NUso7{border-inline-start:3px solid var(--hd-success-solid)}.ui-toast--warning-7mi-S{border-inline-start:3px solid var(--hd-warning-solid)}.ui-toast--danger-IhFSz{border-inline-start:3px solid var(--hd-danger-solid)}@media (forced-colors: active){.ui-toast-U27Of{border-color:CanvasText}}.ui-toast__icon-p-rgI{display:inline-flex;flex-shrink:0;font-size:18px;margin-top:1px}.ui-toast--info-S1QJr .ui-toast__icon-p-rgI{color:var(--hd-text)}.ui-toast--success-NUso7 .ui-toast__icon-p-rgI{color:var(--hd-success-solid)}.ui-toast--warning-7mi-S .ui-toast__icon-p-rgI{color:var(--hd-warning-solid)}.ui-toast--danger-IhFSz .ui-toast__icon-p-rgI{color:var(--hd-danger-solid)}.ui-toast__text-rG4ji{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.ui-toast__message-s6S2-{font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text)}.ui-toast__description-0cYTx{font-size:var(--hd-type-caption-size);color:var(--hd-text-2);line-height:var(--hd-type-body-line-height)}.ui-toast__action-fOXU5{position:relative}.ui-toast__action-fOXU5:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-toast__action-fOXU5{flex-shrink:0;padding:var(--hd-space-1) var(--hd-space-2);border:none;border-radius:var(--hd-radius-xs);background:none;cursor:pointer;font-family:var(--hd-font-body);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text);text-decoration:underline;text-underline-offset:3px}.ui-toast__action-fOXU5:hover{background-color:color-mix(in srgb,var(--hd-text) 8%,transparent)}.ui-toast__action-fOXU5:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 1px)}.ui-toast__close-QxSNP{flex-shrink:0}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-tooltip-RG1g1{display:inline-flex}.ui-tooltip__trigger-nWZtO{display:inline-flex;align-items:center}.ui-bubble-bcBNk{z-index:
|
|
1
|
+
@layer ui{.ui-tooltip-RG1g1{display:inline-flex}.ui-tooltip__trigger-nWZtO{display:inline-flex;align-items:center}.ui-bubble-bcBNk{z-index:var(--hd-z-tooltip);pointer-events:none;width:max-content;max-width:min(280px,100vw - var(--hd-space-6));padding:var(--hd-space-2) var(--hd-space-3);border-radius:var(--hd-radius-xs);background-color:var(--hd-bg-overlay);border:1px solid var(--hd-border-strong);box-shadow:var(--hd-shadow-2);color:var(--hd-text);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-regular);line-height:var(--hd-type-body-line-height);text-align:start}.ui-bubble--top-uWSZy{animation:var(--ui-anim-fade-in-up) var(--hd-duration-fast) var(--hd-ease-standard)}.ui-bubble--bottom-jKokL{animation:var(--ui-anim-fade-in-down) var(--hd-duration-fast) var(--hd-ease-standard)}.ui-bubble--left-WK4EM,.ui-bubble--right-EQjUT{animation:var(--ui-anim-fade-in) var(--hd-duration-fast) var(--hd-ease-standard)}@media (prefers-reduced-motion: reduce){.ui-bubble-bcBNk{animation:none}}@media (forced-colors: active){.ui-bubble-bcBNk{border-color:CanvasText}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@handijit/design"),T=E.breakpoints.sm,_=E.breakpoints.md,A=E.breakpoints.lg,t=`(min-width: ${A+1}px)`,B=`(min-width: ${T+1}px)`,I=`(max-width: ${T}px) and (pointer: coarse)`;exports.ABOVE_MOBILE_MEDIA_QUERY=B;exports.ABOVE_TABLET_MEDIA_QUERY=t;exports.MOBILE_BREAKPOINT=T;exports.SHEET_MEDIA_QUERY=I;exports.TABLET_BREAKPOINT=A;exports.TABLET_PORTRAIT_BREAKPOINT=_;
|
|
2
2
|
//# sourceMappingURL=breakpoint.constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.constants.cjs","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"breakpoint.constants.cjs","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["import { breakpoints } from '@handijit/design';\n\n/** Breakpoints — the values of `@handijit/design` (`$breakpoint-*` in `styles/_variables.scss`). */\nexport const MOBILE_BREAKPOINT = breakpoints.sm;\n\nexport const TABLET_PORTRAIT_BREAKPOINT = breakpoints.md;\n\nexport const TABLET_BREAKPOINT = breakpoints.lg;\n\n/** A sidebar is on screen above this width, so a filter panel is hidden there. */\nexport const ABOVE_TABLET_MEDIA_QUERY = `(min-width: ${TABLET_BREAKPOINT + 1}px)`;\n\nexport const ABOVE_MOBILE_MEDIA_QUERY = `(min-width: ${MOBILE_BREAKPOINT + 1}px)`;\n\n/**\n * When a select-like control opens a bottom sheet instead of a dropdown: a NARROW viewport on a\n * TOUCH device. A desktop window is never a sheet, however narrow — a pointer reaches a dropdown\n * next to the trigger faster than a sheet at the bottom edge of the window.\n */\nexport const SHEET_MEDIA_QUERY = `(max-width: ${MOBILE_BREAKPOINT}px) and (pointer: coarse)`;\n"],"names":["MOBILE_BREAKPOINT","breakpoints","TABLET_PORTRAIT_BREAKPOINT","TABLET_BREAKPOINT","ABOVE_TABLET_MEDIA_QUERY","ABOVE_MOBILE_MEDIA_QUERY","SHEET_MEDIA_QUERY"],"mappings":"oHAGaA,EAAoBC,EAAAA,YAAY,GAEhCC,EAA6BD,EAAAA,YAAY,GAEzCE,EAAoBF,EAAAA,YAAY,GAGhCG,EAA2B,eAAeD,EAAoB,CAAC,MAE/DE,EAA2B,eAAeL,EAAoB,CAAC,MAO/DM,EAAoB,eAAeN,CAAiB"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
export declare const MOBILE_BREAKPOINT
|
|
3
|
-
export declare const TABLET_PORTRAIT_BREAKPOINT
|
|
4
|
-
export declare const TABLET_BREAKPOINT
|
|
5
|
-
/**
|
|
6
|
-
export declare const ABOVE_TABLET_MEDIA_QUERY
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/** Breakpoints — the values of `@handijit/design` (`$breakpoint-*` in `styles/_variables.scss`). */
|
|
2
|
+
export declare const MOBILE_BREAKPOINT: number;
|
|
3
|
+
export declare const TABLET_PORTRAIT_BREAKPOINT: number;
|
|
4
|
+
export declare const TABLET_BREAKPOINT: number;
|
|
5
|
+
/** A sidebar is on screen above this width, so a filter panel is hidden there. */
|
|
6
|
+
export declare const ABOVE_TABLET_MEDIA_QUERY: string;
|
|
7
|
+
export declare const ABOVE_MOBILE_MEDIA_QUERY: string;
|
|
8
|
+
/**
|
|
9
|
+
* When a select-like control opens a bottom sheet instead of a dropdown: a NARROW viewport on a
|
|
10
|
+
* TOUCH device. A desktop window is never a sheet, however narrow — a pointer reaches a dropdown
|
|
11
|
+
* next to the trigger faster than a sheet at the bottom edge of the window.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SHEET_MEDIA_QUERY: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { breakpoints as E } from "@handijit/design";
|
|
2
|
+
const t = E.sm, T = E.md, o = E.lg, _ = `(min-width: ${o + 1}px)`, n = `(min-width: ${t + 1}px)`, B = `(max-width: ${t}px) and (pointer: coarse)`;
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
n as ABOVE_MOBILE_MEDIA_QUERY,
|
|
5
|
+
_ as ABOVE_TABLET_MEDIA_QUERY,
|
|
6
|
+
t as MOBILE_BREAKPOINT,
|
|
7
|
+
B as SHEET_MEDIA_QUERY,
|
|
8
|
+
o as TABLET_BREAKPOINT,
|
|
7
9
|
T as TABLET_PORTRAIT_BREAKPOINT
|
|
8
10
|
};
|
|
9
11
|
//# sourceMappingURL=breakpoint.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.constants.js","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"breakpoint.constants.js","sources":["../../src/constants/breakpoint.constants.ts"],"sourcesContent":["import { breakpoints } from '@handijit/design';\n\n/** Breakpoints — the values of `@handijit/design` (`$breakpoint-*` in `styles/_variables.scss`). */\nexport const MOBILE_BREAKPOINT = breakpoints.sm;\n\nexport const TABLET_PORTRAIT_BREAKPOINT = breakpoints.md;\n\nexport const TABLET_BREAKPOINT = breakpoints.lg;\n\n/** A sidebar is on screen above this width, so a filter panel is hidden there. */\nexport const ABOVE_TABLET_MEDIA_QUERY = `(min-width: ${TABLET_BREAKPOINT + 1}px)`;\n\nexport const ABOVE_MOBILE_MEDIA_QUERY = `(min-width: ${MOBILE_BREAKPOINT + 1}px)`;\n\n/**\n * When a select-like control opens a bottom sheet instead of a dropdown: a NARROW viewport on a\n * TOUCH device. A desktop window is never a sheet, however narrow — a pointer reaches a dropdown\n * next to the trigger faster than a sheet at the bottom edge of the window.\n */\nexport const SHEET_MEDIA_QUERY = `(max-width: ${MOBILE_BREAKPOINT}px) and (pointer: coarse)`;\n"],"names":["MOBILE_BREAKPOINT","breakpoints","TABLET_PORTRAIT_BREAKPOINT","TABLET_BREAKPOINT","ABOVE_TABLET_MEDIA_QUERY","ABOVE_MOBILE_MEDIA_QUERY","SHEET_MEDIA_QUERY"],"mappings":";AAGO,MAAMA,IAAoBC,EAAY,IAEhCC,IAA6BD,EAAY,IAEzCE,IAAoBF,EAAY,IAGhCG,IAA2B,eAAeD,IAAoB,CAAC,OAE/DE,IAA2B,eAAeL,IAAoB,CAAC,OAO/DM,IAAoB,eAAeN,CAAiB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-size.enum.cjs","sources":["../../src/enums/ui-size.enum.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"ui-size.enum.cjs","sources":["../../src/enums/ui-size.enum.ts"],"sourcesContent":["/** Size steps. */\nenum UISize {\n /** 28px tall — dense toolbars and the top band. The touch target stays 44px (`tap-target`). */\n XSMALL = 'XSMALL',\n /** 32px tall. */\n SMALL = 'SMALL',\n /** 40px tall. */\n MEDIUM = 'MEDIUM',\n /** 48px tall. */\n LARGE = 'LARGE',\n}\n\nexport default UISize;\n"],"names":["UISize"],"mappings":"4GACA,IAAKA,GAAAA,IAEHA,EAAA,OAAS,SAETA,EAAA,MAAQ,QAERA,EAAA,OAAS,SAETA,EAAA,MAAQ,QARLA,IAAAA,GAAA,CAAA,CAAA"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Size steps. */
|
|
2
2
|
declare enum UISize {
|
|
3
|
-
/**
|
|
3
|
+
/** 28px tall — dense toolbars and the top band. The touch target stays 44px (`tap-target`). */
|
|
4
4
|
XSMALL = "XSMALL",
|
|
5
|
+
/** 32px tall. */
|
|
5
6
|
SMALL = "SMALL",
|
|
7
|
+
/** 40px tall. */
|
|
6
8
|
MEDIUM = "MEDIUM",
|
|
9
|
+
/** 48px tall. */
|
|
7
10
|
LARGE = "LARGE"
|
|
8
11
|
}
|
|
9
12
|
export default UISize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-size.enum.js","sources":["../../src/enums/ui-size.enum.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"ui-size.enum.js","sources":["../../src/enums/ui-size.enum.ts"],"sourcesContent":["/** Size steps. */\nenum UISize {\n /** 28px tall — dense toolbars and the top band. The touch target stays 44px (`tap-target`). */\n XSMALL = 'XSMALL',\n /** 32px tall. */\n SMALL = 'SMALL',\n /** 40px tall. */\n MEDIUM = 'MEDIUM',\n /** 48px tall. */\n LARGE = 'LARGE',\n}\n\nexport default UISize;\n"],"names":["UISize"],"mappings":"AACA,IAAKA,sBAAAA,OAEHA,EAAA,SAAS,UAETA,EAAA,QAAQ,SAERA,EAAA,SAAS,UAETA,EAAA,QAAQ,SARLA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var N=(e=>(e.PRIMARY="PRIMARY",e.ACCENT="ACCENT",e.SECONDARY="SECONDARY",e.OUTLINE="OUTLINE",e.SOFT="SOFT",e.GHOST="GHOST",e.DANGER="DANGER",e.ON_BAND="ON_BAND",e))(N||{});exports.default=N;
|
|
2
2
|
//# sourceMappingURL=ui-variant.enum.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-variant.enum.cjs","sources":["../../src/enums/ui-variant.enum.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"ui-variant.enum.cjs","sources":["../../src/enums/ui-variant.enum.ts"],"sourcesContent":["/** Button variants. */\nenum UIVariant {\n /** The one expected action of the screen: cobalt fill. One per screen. */\n PRIMARY = 'PRIMARY',\n /** The conversion action (download, try, subscribe): coral fill — and only that. */\n ACCENT = 'ACCENT',\n /** Neutral secondary action: grey border, body text (\"Cancel\"). */\n SECONDARY = 'SECONDARY',\n /** Cobalt frame — an encouraged navigation that is not the primary action (\"See all\"). */\n OUTLINE = 'OUTLINE',\n /** Neutral fill; a secondary action inside a card. */\n SOFT = 'SOFT',\n /** No surface: toolbar and inline secondary actions, in the link colour. */\n GHOST = 'GHOST',\n /** Destructive action: a delete confirmation. */\n DANGER = 'DANGER',\n /** An action on the brand band (deep cobalt in both themes). */\n ON_BAND = 'ON_BAND',\n}\n\nexport default UIVariant;\n"],"names":["UIVariant"],"mappings":"4GACA,IAAKA,GAAAA,IAEHA,EAAA,QAAU,UAEVA,EAAA,OAAS,SAETA,EAAA,UAAY,YAEZA,EAAA,QAAU,UAEVA,EAAA,KAAO,OAEPA,EAAA,MAAQ,QAERA,EAAA,OAAS,SAETA,EAAA,QAAU,UAhBPA,IAAAA,GAAA,CAAA,CAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Button variants. */
|
|
2
2
|
declare enum UIVariant {
|
|
3
|
-
/**
|
|
3
|
+
/** The one expected action of the screen: cobalt fill. One per screen. */
|
|
4
4
|
PRIMARY = "PRIMARY",
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/**
|
|
5
|
+
/** The conversion action (download, try, subscribe): coral fill — and only that. */
|
|
6
|
+
ACCENT = "ACCENT",
|
|
7
|
+
/** Neutral secondary action: grey border, body text ("Cancel"). */
|
|
8
8
|
SECONDARY = "SECONDARY",
|
|
9
|
-
/**
|
|
9
|
+
/** Cobalt frame — an encouraged navigation that is not the primary action ("See all"). */
|
|
10
10
|
OUTLINE = "OUTLINE",
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
LIGHT = "LIGHT",
|
|
15
|
-
/** Zeminsiz eylem: araç çubuğu ve satır içi ikincil işler. */
|
|
11
|
+
/** Neutral fill; a secondary action inside a card. */
|
|
12
|
+
SOFT = "SOFT",
|
|
13
|
+
/** No surface: toolbar and inline secondary actions, in the link colour. */
|
|
16
14
|
GHOST = "GHOST",
|
|
17
|
-
/**
|
|
18
|
-
DANGER = "DANGER"
|
|
15
|
+
/** Destructive action: a delete confirmation. */
|
|
16
|
+
DANGER = "DANGER",
|
|
17
|
+
/** An action on the brand band (deep cobalt in both themes). */
|
|
18
|
+
ON_BAND = "ON_BAND"
|
|
19
19
|
}
|
|
20
20
|
export default UIVariant;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var A = /* @__PURE__ */ ((
|
|
1
|
+
var A = /* @__PURE__ */ ((N) => (N.PRIMARY = "PRIMARY", N.ACCENT = "ACCENT", N.SECONDARY = "SECONDARY", N.OUTLINE = "OUTLINE", N.SOFT = "SOFT", N.GHOST = "GHOST", N.DANGER = "DANGER", N.ON_BAND = "ON_BAND", N))(A || {});
|
|
2
2
|
export {
|
|
3
3
|
A as default
|
|
4
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-variant.enum.js","sources":["../../src/enums/ui-variant.enum.ts"],"sourcesContent":["/**
|
|
1
|
+
{"version":3,"file":"ui-variant.enum.js","sources":["../../src/enums/ui-variant.enum.ts"],"sourcesContent":["/** Button variants. */\nenum UIVariant {\n /** The one expected action of the screen: cobalt fill. One per screen. */\n PRIMARY = 'PRIMARY',\n /** The conversion action (download, try, subscribe): coral fill — and only that. */\n ACCENT = 'ACCENT',\n /** Neutral secondary action: grey border, body text (\"Cancel\"). */\n SECONDARY = 'SECONDARY',\n /** Cobalt frame — an encouraged navigation that is not the primary action (\"See all\"). */\n OUTLINE = 'OUTLINE',\n /** Neutral fill; a secondary action inside a card. */\n SOFT = 'SOFT',\n /** No surface: toolbar and inline secondary actions, in the link colour. */\n GHOST = 'GHOST',\n /** Destructive action: a delete confirmation. */\n DANGER = 'DANGER',\n /** An action on the brand band (deep cobalt in both themes). */\n ON_BAND = 'ON_BAND',\n}\n\nexport default UIVariant;\n"],"names":["UIVariant"],"mappings":"AACA,IAAKA,sBAAAA,OAEHA,EAAA,UAAU,WAEVA,EAAA,SAAS,UAETA,EAAA,YAAY,aAEZA,EAAA,UAAU,WAEVA,EAAA,OAAO,QAEPA,EAAA,QAAQ,SAERA,EAAA,SAAS,UAETA,EAAA,UAAU,WAhBPA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`),o=t.fonts??{},i=Object.entries(o).filter(([,s])=>!!s);i.length>0&&e.push(`${r} {
|
|
3
|
-
${i.map(([s,E])=>` ${T}font-${s}: ${E};`).join(`
|
|
4
|
-
`)}
|
|
5
|
-
}`);const a=t.metrics??{};if(Object.keys(a).length>0){const s=n(a);e.push(`${r} {
|
|
6
|
-
${s}
|
|
7
|
-
}`),e.push(`${r}[${u}='compact'] {
|
|
8
|
-
${s}
|
|
9
|
-
}`)}if(t.light&&Object.keys(t.light).length>0){const s=n(t.light);e.push(`${r} {
|
|
10
|
-
${s}
|
|
11
|
-
}`),e.push(`${r}[${l}='light'] {
|
|
12
|
-
${s}
|
|
13
|
-
}`)}if(t.dark&&Object.keys(t.dark).length>0){const s=n(t.dark);e.push(`${r}[${l}='dark'] {
|
|
14
|
-
${s}
|
|
15
|
-
}`),e.push(`@media (prefers-color-scheme: dark) {
|
|
16
|
-
${r}:not([${l}]) {
|
|
17
|
-
${n(t.dark," ")}
|
|
18
|
-
}
|
|
19
|
-
}`)}return e.length===0?"":`@layer ${h} {
|
|
20
|
-
${e.join(`
|
|
21
|
-
|
|
22
|
-
`).replace(/^(?=.)/gm," ")}
|
|
23
|
-
}`},k=t=>t.replace(/<\/style/gi,"<\\/style"),I=t=>{if(!y.isClient())return;const e=t?m(t):"",n=document.getElementById(c);if(e===""){n==null||n.remove();return}const o=n??document.createElement("style");o.id=c,o.textContent=e,n||document.head.appendChild(o)},H=({storageKey:t})=>`(function(){try{var t=localStorage.getItem(${JSON.stringify(t)});if(t==="light"||t==="dark")document.documentElement.setAttribute("${l}",t)}catch(e){}})()`;exports.DENSITY_ATTRIBUTE=u;exports.THEME_ATTRIBUTE=l;exports.THEME_LAYER=h;exports.THEME_STYLE_ID=c;exports.THEME_SWITCHING_CLASS=_;exports.TOKEN_PREFIX=T;exports.applyThemeConfig=I;exports.buildThemeCss=m;exports.resolveTokens=S;exports.themeBootScript=H;exports.toStyleHtml=k;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@handijit/design"),r=require("@handijit/utils"),n="ui-theme-switching",o="(prefers-color-scheme: dark)",i=e=>e==="light"||e==="dark",s=()=>{var e;return r.isClient()&&((e=window.matchMedia)!=null&&e.call(window,o).matches)?"dark":"light"},c=()=>{if(!r.isClient())return"system";try{const e=window.localStorage.getItem(t.THEME_STORAGE_KEY);return i(e)?e:"system"}catch{return"system"}},m=()=>{if(!r.isClient())return"light";const e=document.documentElement.getAttribute(t.THEME_ATTRIBUTE);return i(e)?e:s()},T=e=>{if(r.isClient()){try{e==="system"?window.localStorage.removeItem(t.THEME_STORAGE_KEY):window.localStorage.setItem(t.THEME_STORAGE_KEY,e)}catch{}document.documentElement.setAttribute(t.THEME_ATTRIBUTE,e==="system"?s():e)}};exports.THEME_SWITCHING_CLASS=n;exports.applyThemePreference=T;exports.readActiveTheme=m;exports.readStoredPreference=c;exports.readSystemTheme=s;
|
|
24
2
|
//# sourceMappingURL=theme.helper.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.helper.cjs","sources":["../../src/helpers/theme.helper.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"theme.helper.cjs","sources":["../../src/helpers/theme.helper.ts"],"sourcesContent":["import {\n THEME_ATTRIBUTE,\n THEME_STORAGE_KEY,\n type ThemeName,\n type ThemePreference,\n} from '@handijit/design';\nimport { isClient } from '@handijit/utils';\n\n/** Turns transitions off for one frame while the theme flips (see `base.scss`). */\nexport const THEME_SWITCHING_CLASS = 'ui-theme-switching';\n\nconst DARK_QUERY = '(prefers-color-scheme: dark)';\n\nconst isThemeName = (value: unknown): value is ThemeName => value === 'light' || value === 'dark';\n\n/** The operating system's setting; `light` on the server. */\nexport const readSystemTheme = (): ThemeName =>\n isClient() && window.matchMedia?.(DARK_QUERY).matches ? 'dark' : 'light';\n\n/**\n * The user's stored choice. \"System\" is the absence of the key, and a storage that throws (private\n * window, blocked site data) counts as no choice — the same reading as the design boot script.\n */\nexport const readStoredPreference = (): ThemePreference => {\n if (!isClient()) return 'system';\n\n try {\n const stored = window.localStorage.getItem(THEME_STORAGE_KEY);\n return isThemeName(stored) ? stored : 'system';\n } catch {\n return 'system';\n }\n};\n\n/** The theme drawn on the page: the root attribute when it names a theme, else the system's. */\nexport const readActiveTheme = (): ThemeName => {\n if (!isClient()) return 'light';\n\n const attribute = document.documentElement.getAttribute(THEME_ATTRIBUTE);\n return isThemeName(attribute) ? attribute : readSystemTheme();\n};\n\n/**\n * Stores the choice and applies it to the root element, the way `@handijit/design` documents it:\n * only `light` / `dark` are stored, \"system\" removes the key, and the attribute always carries the\n * resolved theme so the boot script and this function agree.\n */\nexport const applyThemePreference = (preference: ThemePreference): void => {\n if (!isClient()) return;\n\n try {\n if (preference === 'system') window.localStorage.removeItem(THEME_STORAGE_KEY);\n else window.localStorage.setItem(THEME_STORAGE_KEY, preference);\n } catch {\n /* The choice still applies for this page view; it just cannot be remembered. */\n }\n\n document.documentElement.setAttribute(\n THEME_ATTRIBUTE,\n preference === 'system' ? readSystemTheme() : preference,\n );\n};\n"],"names":["THEME_SWITCHING_CLASS","DARK_QUERY","isThemeName","value","readSystemTheme","isClient","_a","readStoredPreference","stored","THEME_STORAGE_KEY","readActiveTheme","attribute","THEME_ATTRIBUTE","applyThemePreference","preference"],"mappings":"iJASaA,EAAwB,qBAE/BC,EAAa,+BAEbC,EAAeC,GAAuCA,IAAU,SAAWA,IAAU,OAG9EC,EAAkB,IAAA,OAC7BC,OAAAA,EAAAA,SAAA,KAAcC,EAAA,OAAO,aAAP,MAAAA,EAAA,YAAoBL,GAAY,SAAU,OAAS,SAMtDM,EAAuB,IAAuB,CACzD,GAAI,CAACF,EAAAA,SAAA,EAAY,MAAO,SAExB,GAAI,CACF,MAAMG,EAAS,OAAO,aAAa,QAAQC,EAAAA,iBAAiB,EAC5D,OAAOP,EAAYM,CAAM,EAAIA,EAAS,QACxC,MAAQ,CACN,MAAO,QACT,CACF,EAGaE,EAAkB,IAAiB,CAC9C,GAAI,CAACL,EAAAA,SAAA,EAAY,MAAO,QAExB,MAAMM,EAAY,SAAS,gBAAgB,aAAaC,EAAAA,eAAe,EACvE,OAAOV,EAAYS,CAAS,EAAIA,EAAYP,EAAA,CAC9C,EAOaS,EAAwBC,GAAsC,CACzE,GAAKT,EAAAA,WAEL,IAAI,CACES,IAAe,SAAU,OAAO,aAAa,WAAWL,EAAAA,iBAAiB,EACxE,OAAO,aAAa,QAAQA,EAAAA,kBAAmBK,CAAU,CAChE,MAAQ,CAER,CAEA,SAAS,gBAAgB,aACvBF,EAAAA,gBACAE,IAAe,SAAWV,IAAoBU,CAAA,EAElD"}
|
|
@@ -1,49 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
export declare const TOKEN_PREFIX = "--ui-";
|
|
4
|
-
/** Ezme kurallarını taşıyan `<style>` etiketinin kimliği. */
|
|
5
|
-
export declare const THEME_STYLE_ID = "ui-theme-overrides";
|
|
6
|
-
/** Temanın taşındığı öznitelik. `<html data-ui-theme="dark">`. */
|
|
7
|
-
export declare const THEME_ATTRIBUTE = "data-ui-theme";
|
|
8
|
-
/** Bilgi yoğunluğunun taşındığı öznitelik. `<html data-ui-density="compact">`. */
|
|
9
|
-
export declare const DENSITY_ATTRIBUTE = "data-ui-density";
|
|
10
|
-
/** Geçiş animasyonlarını tek kare boyunca kapatan sınıf (bkz. `base.scss`). */
|
|
1
|
+
import { ThemeName, ThemePreference } from '@handijit/design';
|
|
2
|
+
/** Turns transitions off for one frame while the theme flips (see `base.scss`). */
|
|
11
3
|
export declare const THEME_SWITCHING_CLASS = "ui-theme-switching";
|
|
12
|
-
/**
|
|
13
|
-
export declare const
|
|
14
|
-
/** Verilen şemanın tam token eşlemesi — ezmeler uygulanmış hâliyle. */
|
|
15
|
-
export declare const resolveTokens: (scheme: UiColorScheme, config?: UiThemeConfig) => UiResolvedTokens;
|
|
4
|
+
/** The operating system's setting; `light` on the server. */
|
|
5
|
+
export declare const readSystemTheme: () => ThemeName;
|
|
16
6
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* ⚠ 5.6.2'ye kadar ezme katmansızdı: `:root:not([data-ui-theme])` (0,2,0) tüketicinin `<html>`e
|
|
20
|
-
* yazdığı ezmeyi (`html:has(.panel)`, 0,1,1) hidrasyondan SONRA eziyordu — sunucu çiziminde
|
|
21
|
-
* tüketicinin rengi, bir kare sonra temanınki (ölçüldü: panelin kırmızı sil düğmesi koyu temada
|
|
22
|
-
* beyaza dönüyordu). Katmansız açık ezme koyu varsayılanı da yeniyor, koyu temaya sızıyordu.
|
|
7
|
+
* The user's stored choice. "System" is the absence of the key, and a storage that throws (private
|
|
8
|
+
* window, blocked site data) counts as no choice — the same reading as the design boot script.
|
|
23
9
|
*/
|
|
24
|
-
export declare const
|
|
10
|
+
export declare const readStoredPreference: () => ThemePreference;
|
|
11
|
+
/** The theme drawn on the page: the root attribute when it names a theme, else the system's. */
|
|
12
|
+
export declare const readActiveTheme: () => ThemeName;
|
|
25
13
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
14
|
+
* Stores the choice and applies it to the root element, the way `@handijit/design` documents it:
|
|
15
|
+
* only `light` / `dark` are stored, "system" removes the key, and the attribute always carries the
|
|
16
|
+
* resolved theme so the boot script and this function agree.
|
|
28
17
|
*/
|
|
29
|
-
export declare const
|
|
30
|
-
/**
|
|
31
|
-
* Ezmeleri `<head>`in sonuna yazar — React dışındaki yol (`initUi`); sağlayıcı ezmeyi ağaçta
|
|
32
|
-
* çizer.
|
|
33
|
-
* ⚠ Stil sayfalarından SONRA çağrılmalı: `@layer ui` belgede ilk kez burada görülürse katman
|
|
34
|
-
* sırası buradan kurulur ve tüketicinin sonra gelen `@layer reset, ui;` bildirimi `reset`i
|
|
35
|
-
* `ui`nin üstüne koyar.
|
|
36
|
-
*/
|
|
37
|
-
export declare const applyThemeConfig: (config: UiThemeConfig | undefined) => void;
|
|
38
|
-
/**
|
|
39
|
-
* İLK BOYAMADAN ÖNCE çalışacak tema betiği — `<head>` içine, React ağacından ÖNCE.
|
|
40
|
-
* Kayıtlı açık seçimi (`light` / `dark`) `<html data-ui-theme>`e yazar; kayıt yoksa öznitelik
|
|
41
|
-
* yazılmaz ve sistem tercihi izlenir.
|
|
42
|
-
* ⚠ React ağacına konamaz: sağlayıcı ağaç monte olduktan sonra çalışıyor ve koyu tema seçmiş
|
|
43
|
-
* kullanıcı o ana kadar bir kare beyaz ekran görüyordu. İki tüketici bu betiği ELLE yazıyordu.
|
|
44
|
-
* ⚠ Depolama okunamazsa (gizli pencere, engellenmiş site verisi) sessizce sistem tercihine düşer.
|
|
45
|
-
* @example <script dangerouslySetInnerHTML={{ __html: themeBootScript({ storageKey: 'theme' }) }} />
|
|
46
|
-
*/
|
|
47
|
-
export declare const themeBootScript: ({ storageKey }: {
|
|
48
|
-
storageKey: string;
|
|
49
|
-
}) => string;
|
|
18
|
+
export declare const applyThemePreference: (preference: ThemePreference) => void;
|