@handijitcom/ui 2.0.1 → 3.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 +67 -62
- package/build/calendar.cjs +1 -1
- package/build/calendar.cjs.map +1 -1
- package/build/calendar.css +1 -1
- package/build/calendar.js +109 -111
- package/build/calendar.js.map +1 -1
- package/build/chat.cjs +1 -1
- package/build/chat.cjs.map +1 -1
- package/build/chat.css +1 -1
- package/build/chat.js +2 -2
- package/build/chat.js.map +1 -1
- package/build/components/Alert/style.css +1 -1
- package/build/components/Avatar/index.cjs.map +1 -1
- package/build/components/Avatar/index.d.cts +1 -1
- package/build/components/Avatar/index.d.ts +1 -1
- package/build/components/Avatar/index.js.map +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.cts +4 -2
- package/build/components/Badge/index.d.ts +4 -2
- 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/BrandSurface/index.cjs +2 -0
- package/build/components/BrandSurface/index.cjs.map +1 -0
- package/build/components/BrandSurface/index.d.cts +46 -0
- package/build/components/BrandSurface/index.d.ts +46 -0
- package/build/components/BrandSurface/index.js +128 -0
- package/build/components/BrandSurface/index.js.map +1 -0
- package/build/components/BrandSurface/style.css +1 -0
- package/build/components/Button/index.cjs +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Button/style.css +1 -1
- package/build/components/CodeBadge/style.css +1 -1
- package/build/components/CopyField/style.css +1 -1
- package/build/components/DataTable/style.css +1 -1
- package/build/components/Eyebrow/index.cjs.map +1 -1
- package/build/components/Eyebrow/index.d.cts +1 -1
- package/build/components/Eyebrow/index.d.ts +1 -1
- package/build/components/Eyebrow/index.js.map +1 -1
- package/build/components/Eyebrow/style.css +1 -1
- package/build/components/Modal/style.css +1 -1
- package/build/components/Progress/index.cjs +1 -1
- package/build/components/Progress/index.cjs.map +1 -1
- package/build/components/Progress/index.d.cts +2 -2
- package/build/components/Progress/index.d.ts +2 -2
- package/build/components/Progress/index.js +1 -1
- package/build/components/Progress/index.js.map +1 -1
- package/build/components/Progress/style.css +1 -1
- package/build/components/Rating/style.css +1 -1
- package/build/components/RatingInput/style.css +1 -1
- package/build/components/Stat/style.css +1 -1
- package/build/components/StatStrip/index.cjs +1 -1
- package/build/components/StatStrip/index.cjs.map +1 -1
- package/build/components/StatStrip/index.d.cts +3 -3
- package/build/components/StatStrip/index.d.ts +3 -3
- package/build/components/StatStrip/index.js +1 -1
- package/build/components/StatStrip/index.js.map +1 -1
- package/build/components/StatStrip/style.css +1 -1
- package/build/components/StatusDot/index.cjs +1 -1
- package/build/components/StatusDot/index.cjs.map +1 -1
- package/build/components/StatusDot/index.d.cts +5 -3
- package/build/components/StatusDot/index.d.ts +5 -3
- package/build/components/StatusDot/index.js +1 -1
- package/build/components/StatusDot/index.js.map +1 -1
- package/build/components/StatusDot/style.css +1 -1
- package/build/components/TagInput/style.css +1 -1
- package/build/components/Textarea/style.css +1 -1
- package/build/components/Timeline/style.css +1 -1
- package/build/components/Toast/style.css +1 -1
- package/build/design/index.cjs +84 -178
- package/build/design/index.cjs.map +1 -1
- package/build/design/index.d.cts +72 -63
- package/build/design/index.d.mts +72 -63
- package/build/design/index.mjs +84 -178
- package/build/design/index.mjs.map +1 -1
- package/build/design/index.umd.cjs +1 -1
- package/build/design/index.umd.cjs.map +1 -1
- package/build/design/tokens.css +62 -177
- package/build/design/tokens.json +66 -168
- package/build/design/tokens.scss +48 -178
- 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.cts +2 -2
- package/build/enums/ui-variant.enum.d.ts +2 -2
- package/build/enums/ui-variant.enum.js +1 -1
- package/build/enums/ui-variant.enum.js.map +1 -1
- package/build/index.cjs +1 -1
- package/build/index.d.cts +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +11 -11
- package/build/scss/_mixins.scss +8 -10
- package/build/scss/_variables.scss +19 -39
- package/build/styles.css +21 -21
- package/build/types/calendar/Calendar/index.d.cts +1 -1
- package/build/types/calendar/Calendar/index.d.ts +1 -1
- package/build/types/calendar/core/types.d.cts +3 -2
- package/build/types/calendar/core/types.d.ts +3 -2
- package/package.json +11 -11
- package/build/components/Band/index.cjs +0 -2
- package/build/components/Band/index.cjs.map +0 -1
- package/build/components/Band/index.d.cts +0 -45
- package/build/components/Band/index.d.ts +0 -45
- package/build/components/Band/index.js +0 -126
- package/build/components/Band/index.js.map +0 -1
- package/build/components/Band/style.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-badge-b14ZG{display:inline-flex;align-items:center;gap:var(--hd-space-2);max-width:100%;min-width:0;background-color:var(--hd-
|
|
1
|
+
@layer ui{.ui-badge-b14ZG{display:inline-flex;align-items:center;gap:var(--hd-space-2);max-width:100%;min-width:0;background-color:var(--hd-ink-900);color:var(--hd-ink-50);border:1px solid var(--hd-ink-700);border-radius:var(--hd-radius-xs)}.ui-badge--xs-PBD2E{padding:1px var(--hd-space-1);border-radius:var(--hd-radius-xs)}.ui-badge--xs-PBD2E .ui-badge__code-RRDlH{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);font-variant-numeric:tabular-nums;letter-spacing:.02em}.ui-badge--sm-Fr4vY{padding:var(--hd-space-1) var(--hd-space-2)}.ui-badge--sm-Fr4vY .ui-badge__code-RRDlH{font-family:var(--hd-font-mono);font-size:var(--hd-type-small-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-badge--md-HGRL4{padding:var(--hd-space-1) var(--hd-space-3)}.ui-badge--md-HGRL4 .ui-badge__code-RRDlH{font-family:var(--hd-font-mono);font-size:var(--hd-type-h4-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-badge--lg-J4aiq{padding:var(--hd-space-2) var(--hd-space-4)}.ui-badge--lg-J4aiq .ui-badge__code-RRDlH{font-family:var(--hd-font-mono);font-size:var(--hd-type-h2-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-badge--interactive-mxvxZ{transition:background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-badge--interactive-mxvxZ:has(.ui-badge__action-OCHTM:hover){background-color:var(--hd-ink-800)}.ui-badge--interactive-mxvxZ .ui-badge__code-RRDlH{-webkit-user-select:auto;user-select:auto}@media (prefers-reduced-motion: reduce){.ui-badge--interactive-mxvxZ{transition:none}}.ui-badge__action-OCHTM{position:relative}.ui-badge__action-OCHTM:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-badge__action-OCHTM{display:inline-flex;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:none;cursor:pointer}.ui-badge__action-OCHTM:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-ink-50);outline-offset:var(--ui-ring-offset, 2px)}.ui-badge__code-RRDlH{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;-webkit-user-select:all;user-select:all;color:inherit;font-weight:var(--hd-font-weight-bold);letter-spacing:.04em}.ui-badge__button-CVr21{position:relative}.ui-badge__button-CVr21:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-badge__button-CVr21{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;padding:0;border:none;border-radius:var(--hd-radius-xs);background:none;color:var(--hd-ink-300);font-size:16px;cursor:pointer;transition:color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-badge__button-CVr21:hover{color:var(--hd-ink-50)}.ui-badge__button-CVr21:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-ink-50);outline-offset:var(--ui-ring-offset, 1px)}@media (prefers-reduced-motion: reduce){.ui-badge__button-CVr21{transition:none}}.ui-badge__button--done-k6XeK,.ui-badge__button--done-k6XeK:hover{color:var(--hd-ink-50)}.ui-badge__srOnly-ow8L5{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-copy-Yht5s{display:inline-flex;align-items:center;gap:var(--hd-space-1);max-width:100%;min-width:0}.ui-copy--sm-Tjqws .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy--md-00rhU .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-small-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy__code-CYlCA{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;-webkit-user-select:all;user-select:all;color:inherit}.ui-copy__button-GDdH6{position:relative}.ui-copy__button-GDdH6:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-copy__button-GDdH6{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;padding:0;border:none;border-radius:var(--hd-radius-xs);background:none;color:var(--hd-text-3);font-size:16px;cursor:pointer;transition:color var(--hd-duration-fast) var(--hd-ease-standard),background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-copy__button-GDdH6:hover{color:var(--hd-text);background-color:var(--hd-bg-raised)}.ui-copy__button-GDdH6:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--ui-ring-color, var(--hd-focus));outline-offset:var(--ui-ring-offset, -1px)}@media (prefers-reduced-motion: reduce){.ui-copy__button-GDdH6{transition:none}}.ui-copy__button--done-MujUR,.ui-copy__button--done-MujUR:hover{color:var(--hd-
|
|
1
|
+
@layer ui{.ui-copy-Yht5s{display:inline-flex;align-items:center;gap:var(--hd-space-1);max-width:100%;min-width:0}.ui-copy--sm-Tjqws .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy--md-00rhU .ui-copy__code-CYlCA{font-family:var(--hd-font-mono);font-size:var(--hd-type-small-size);letter-spacing:.02em;font-variant-numeric:tabular-nums}.ui-copy__code-CYlCA{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;-webkit-user-select:all;user-select:all;color:inherit}.ui-copy__button-GDdH6{position:relative}.ui-copy__button-GDdH6:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-copy__button-GDdH6{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;padding:0;border:none;border-radius:var(--hd-radius-xs);background:none;color:var(--hd-text-3);font-size:16px;cursor:pointer;transition:color var(--hd-duration-fast) var(--hd-ease-standard),background-color var(--hd-duration-fast) var(--hd-ease-standard)}.ui-copy__button-GDdH6:hover{color:var(--hd-text);background-color:var(--hd-bg-raised)}.ui-copy__button-GDdH6:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--ui-ring-color, var(--hd-focus));outline-offset:var(--ui-ring-offset, -1px)}@media (prefers-reduced-motion: reduce){.ui-copy__button-GDdH6{transition:none}}.ui-copy__button--done-MujUR,.ui-copy__button--done-MujUR:hover{color:var(--hd-primary)}.ui-copy__srOnly-WMTNN{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";@layer ui{.ui-wrapper-KXCZg{overflow:auto;position:relative;background-color:var(--hd-bg-surface);border:1px solid var(--hd-border);border-radius:var(--hd-radius-sm)}.ui-wrapper--capped-M2QUJ{max-height:calc(100dvh - var(--ui-header-height, 0px) - var(--hd-space-12))}.ui-wrapper--capped-M2QUJ .ui-table-LF5Ow thead th{position:sticky;top:0;z-index:var(--hd-z-sticky)}.ui-table-LF5Ow{width:100%;border-collapse:collapse;font-family:var(--hd-font-body);font-size:var(--hd-type-small-size)}.ui-table-LF5Ow th,.ui-table-LF5Ow td{padding:var(--hd-space-3);text-align:start;border-bottom:1px solid var(--hd-border);vertical-align:middle}.ui-table-LF5Ow thead th{background-color:var(--hd-bg-raised);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text-2);white-space:nowrap}.ui-table-LF5Ow tbody tr:hover{background-color:var(--hd-bg-inset)}.ui-state-YPPb0{text-align:center;color:var(--hd-text-2);padding-block:var(--hd-space-6)}.ui-state--error-A492d{color:var(--hd-danger-fg)}.ui-state__message-wwbIW{display:inline-flex;align-items:center;gap:var(--hd-space-2)}.ui-state__message-wwbIW svg{font-size:18px;flex-shrink:0}.ui-row--warning-BAUN2{background-color:var(--hd-
|
|
1
|
+
@charset "UTF-8";@layer ui{.ui-wrapper-KXCZg{overflow:auto;position:relative;background-color:var(--hd-bg-surface);border:1px solid var(--hd-border);border-radius:var(--hd-radius-sm)}.ui-wrapper--capped-M2QUJ{max-height:calc(100dvh - var(--ui-header-height, 0px) - var(--hd-space-12))}.ui-wrapper--capped-M2QUJ .ui-table-LF5Ow thead th{position:sticky;top:0;z-index:var(--hd-z-sticky)}.ui-table-LF5Ow{width:100%;border-collapse:collapse;font-family:var(--hd-font-body);font-size:var(--hd-type-small-size)}.ui-table-LF5Ow th,.ui-table-LF5Ow td{padding:var(--hd-space-3);text-align:start;border-bottom:1px solid var(--hd-border);vertical-align:middle}.ui-table-LF5Ow thead th{background-color:var(--hd-bg-raised);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text-2);white-space:nowrap}.ui-table-LF5Ow tbody tr:hover{background-color:var(--hd-bg-inset)}.ui-state-YPPb0{text-align:center;color:var(--hd-text-2);padding-block:var(--hd-space-6)}.ui-state--error-A492d{color:var(--hd-danger-fg)}.ui-state__message-wwbIW{display:inline-flex;align-items:center;gap:var(--hd-space-2)}.ui-state__message-wwbIW svg{font-size:18px;flex-shrink:0}.ui-row--warning-BAUN2{background-color:var(--hd-bg-raised)}.ui-row--warning-BAUN2 td:first-child{box-shadow:inset 3px 0 0 var(--hd-text)}.ui-srOnly-Oia8c{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ui-sort-3Q6Fx{display:inline-flex;align-items:center;gap:var(--hd-space-1);width:100%;padding:0;border:none;background:none;cursor:pointer;font:inherit;color:inherit;text-align:inherit}.ui-sort-3Q6Fx:hover .ui-sort__arrow-MITWb:not(.ui-sort__arrow--ascending-85T5d,.ui-sort__arrow--descending-gs3VU){color:var(--hd-text)}.ui-sort-3Q6Fx:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--ui-ring-color, var(--hd-focus));outline-offset:var(--ui-ring-offset, -2px)}.ui-sort__arrow-MITWb{flex-shrink:0;font-size:var(--hd-type-caption-size);color:var(--hd-text-3);transition:color var(--hd-duration-fast) var(--hd-ease-standard)}@media (forced-colors: active){.ui-sort__arrow-MITWb{color:GrayText}}.ui-sort__arrow--ascending-85T5d,.ui-sort__arrow--descending-gs3VU{color:var(--hd-text)}@media (prefers-reduced-motion: reduce){.ui-sort__arrow-MITWb{transition:none}}.ui-sticky-KDEvQ{position:sticky;left:0;z-index:var(--hd-z-raised);background-color:var(--hd-bg-surface)}[dir=rtl] .ui-sticky-KDEvQ{left:auto;right:0}.ui-sticky-KDEvQ:after{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:1px;background-color:var(--hd-border)}thead .ui-sticky-KDEvQ{background-color:var(--hd-bg-raised)}.ui-bulkBar-62qk0{display:flex;align-items:center;gap:var(--hd-space-3);position:sticky;top:0;z-index:var(--hd-z-sticky);padding:var(--hd-space-2) var(--hd-space-3);border-bottom:1px solid var(--hd-border-strong);background-color:var(--hd-primary-soft);font-size:var(--hd-type-small-size);color:var(--hd-text)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/Eyebrow/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** `start`: one rule before the text. `center`: the text framed by a rule on each side. */\nexport type EyebrowAlign = 'start' | 'center';\n\ntype Props = {\n /** Short text; it is set in capitals by CSS, so the element's `lang` picks the casing (İ). */\n children: ReactNode;\n align?: EyebrowAlign;\n as?: 'p' | 'span' | 'div';\n className?: string;\n testId?: string;\n};\n\n/**\n * Eyebrow — the small label above a heading: monospace capitals framed by thin rules. On the\n * brand
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/Eyebrow/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** `start`: one rule before the text. `center`: the text framed by a rule on each side. */\nexport type EyebrowAlign = 'start' | 'center';\n\ntype Props = {\n /** Short text; it is set in capitals by CSS, so the element's `lang` picks the casing (İ). */\n children: ReactNode;\n align?: EyebrowAlign;\n as?: 'p' | 'span' | 'div';\n className?: string;\n testId?: string;\n};\n\n/**\n * Eyebrow — the small label above a heading: monospace capitals framed by thin rules. On the\n * brand surface (`BrandSurface`) it turns white by itself. The rules are decoration (CSS\n * pseudo-elements); the text is read as written.\n */\nconst Eyebrow: FC<Props> = ({ children, align = 'start', as: Tag = 'p', className, testId }) => (\n <Tag className={cx(styles.eyebrow, styles[`eyebrow--${align}`], className)} data-testid={testId}>\n {children}\n </Tag>\n);\n\nexport default /*#__PURE__*/ memo(Eyebrow) as typeof Eyebrow;\n"],"names":["Eyebrow","children","align","Tag","className","testId","jsx","cx","styles","index"],"mappings":"0PAuBMA,EAAqB,CAAC,CAAE,SAAAC,EAAU,MAAAC,EAAQ,QAAS,GAAIC,EAAM,IAAK,UAAAC,EAAW,OAAAC,KACjFC,EAAAA,IAACH,EAAA,CAAI,UAAWI,EAAAA,GAAGC,EAAAA,QAAO,QAASA,EAAAA,QAAO,YAAYN,CAAK,EAAE,EAAGE,CAAS,EAAG,cAAaC,EACtF,SAAAJ,CAAA,CACH,EAGFQ,SAAkCT,CAAO"}
|
|
@@ -11,7 +11,7 @@ type Props = {
|
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Eyebrow — the small label above a heading: monospace capitals framed by thin rules. On the
|
|
14
|
-
* brand
|
|
14
|
+
* brand surface (`BrandSurface`) it turns white by itself. The rules are decoration (CSS
|
|
15
15
|
* pseudo-elements); the text is read as written.
|
|
16
16
|
*/
|
|
17
17
|
declare const Eyebrow: FC<Props>;
|
|
@@ -11,7 +11,7 @@ type Props = {
|
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Eyebrow — the small label above a heading: monospace capitals framed by thin rules. On the
|
|
14
|
-
* brand
|
|
14
|
+
* brand surface (`BrandSurface`) it turns white by itself. The rules are decoration (CSS
|
|
15
15
|
* pseudo-elements); the text is read as written.
|
|
16
16
|
*/
|
|
17
17
|
declare const Eyebrow: FC<Props>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Eyebrow/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** `start`: one rule before the text. `center`: the text framed by a rule on each side. */\nexport type EyebrowAlign = 'start' | 'center';\n\ntype Props = {\n /** Short text; it is set in capitals by CSS, so the element's `lang` picks the casing (İ). */\n children: ReactNode;\n align?: EyebrowAlign;\n as?: 'p' | 'span' | 'div';\n className?: string;\n testId?: string;\n};\n\n/**\n * Eyebrow — the small label above a heading: monospace capitals framed by thin rules. On the\n * brand
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Eyebrow/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** `start`: one rule before the text. `center`: the text framed by a rule on each side. */\nexport type EyebrowAlign = 'start' | 'center';\n\ntype Props = {\n /** Short text; it is set in capitals by CSS, so the element's `lang` picks the casing (İ). */\n children: ReactNode;\n align?: EyebrowAlign;\n as?: 'p' | 'span' | 'div';\n className?: string;\n testId?: string;\n};\n\n/**\n * Eyebrow — the small label above a heading: monospace capitals framed by thin rules. On the\n * brand surface (`BrandSurface`) it turns white by itself. The rules are decoration (CSS\n * pseudo-elements); the text is read as written.\n */\nconst Eyebrow: FC<Props> = ({ children, align = 'start', as: Tag = 'p', className, testId }) => (\n <Tag className={cx(styles.eyebrow, styles[`eyebrow--${align}`], className)} data-testid={testId}>\n {children}\n </Tag>\n);\n\nexport default /*#__PURE__*/ memo(Eyebrow) as typeof Eyebrow;\n"],"names":["Eyebrow","children","align","Tag","className","testId","jsx","cx","styles","index"],"mappings":";;;;AAuBA,MAAMA,IAAqB,CAAC,EAAE,UAAAC,GAAU,OAAAC,IAAQ,SAAS,IAAIC,IAAM,KAAK,WAAAC,GAAW,QAAAC,QACjF,gBAAAC,EAACH,GAAA,EAAI,WAAWI,EAAGC,EAAO,SAASA,EAAO,YAAYN,CAAK,EAAE,GAAGE,CAAS,GAAG,eAAaC,GACtF,UAAAJ,EAAA,CACH,GAGFQ,sBAAkCT,CAAO;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-eyebrow-AOX3g{display:flex;align-items:center;gap:var(--hd-space-3);margin:0;font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-medium);line-height:var(--hd-type-h4-line-height);letter-spacing:var(--ui-eyebrow-tracking, .15em);text-transform:uppercase;color:var(--hd-text-2)}.ui-eyebrow-AOX3g:before,.ui-eyebrow-AOX3g:after{content:"";flex:none;width:var(--hd-space-6);border-top:1px solid var(--hd-border-strong)}.ui-eyebrow--start-emjlQ:after{display:none}.ui-eyebrow--center-Q6Nd4{justify-content:center;text-align:center}:where([data-ui-
|
|
1
|
+
@layer ui{.ui-eyebrow-AOX3g{display:flex;align-items:center;gap:var(--hd-space-3);margin:0;font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-medium);line-height:var(--hd-type-h4-line-height);letter-spacing:var(--ui-eyebrow-tracking, .15em);text-transform:uppercase;color:var(--hd-text-2)}.ui-eyebrow-AOX3g:before,.ui-eyebrow-AOX3g:after{content:"";flex:none;width:var(--hd-space-6);border-top:1px solid var(--hd-border-strong)}.ui-eyebrow--start-emjlQ:after{display:none}.ui-eyebrow--center-Q6Nd4{justify-content:center;text-align:center}:where([data-ui-brand-surface]) .ui-eyebrow-AOX3g{color:var(--hd-on-primary)}:where([data-ui-brand-surface]) .ui-eyebrow-AOX3g:before,:where([data-ui-brand-surface]) .ui-eyebrow-AOX3g:after{border-top-color:var(--hd-brand-surface-line)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-modal-3IDi9{border:none;padding:0;background:none;color:var(--hd-text);max-width:min(92vw,560px);width:100%;max-height:90dvh}.ui-modal--sm-A7WsS{max-width:min(92vw,440px)}.ui-modal--lg-z99Em{max-width:min(92vw,880px)}.ui-modal--xl-g3d6F{max-width:min(94vw,1040px)}.ui-modal-3IDi9{opacity:0;translate:0 6px;transition:opacity var(--hd-duration-fast) var(--hd-ease-standard),translate var(--hd-duration-fast) var(--hd-ease-standard),overlay var(--hd-duration-fast) allow-discrete,display var(--hd-duration-fast) allow-discrete}.ui-modal-3IDi9[open]{opacity:1;translate:0 0}@starting-style{.ui-modal-3IDi9[open]{opacity:0;translate:0 6px}}@media (prefers-reduced-motion: reduce){.ui-modal-3IDi9{transition:none}}.ui-modal-3IDi9::backdrop{opacity:0;transition:opacity var(--hd-duration-fast) var(--hd-ease-standard),overlay var(--hd-duration-fast) allow-discrete,display var(--hd-duration-fast) allow-discrete}.ui-modal-3IDi9[open]::backdrop{opacity:1}@starting-style{.ui-modal-3IDi9[open]::backdrop{opacity:0}}@media (prefers-reduced-motion: reduce){.ui-modal-3IDi9::backdrop{transition:none}}.ui-modal-3IDi9:focus-visible{outline:none}.ui-modal-3IDi9:focus-visible .ui-modal__panel--qLSz{outline:var(--ui-ring-width, 2px) solid var(--ui-ring-color, var(--hd-focus));outline-offset:var(--ui-ring-offset, -2px)}.ui-modal-3IDi9::backdrop{background-color:var(--hd-scrim);-webkit-backdrop-filter:blur(var(--ui-scrim-blur, 3px));backdrop-filter:blur(var(--ui-scrim-blur, 3px))}@media (max-width: 640px){.ui-modal-3IDi9,.ui-modal--sm-A7WsS,.ui-modal--lg-z99Em,.ui-modal--xl-g3d6F{max-width:none;width:100%;max-height:calc(92dvh - env(safe-area-inset-top,0px));margin:auto 0 0;margin-bottom:max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px))}.ui-modal-3IDi9:not([open]),.ui-modal-3IDi9[open]{opacity:0;translate:0 100%;transition:opacity var(--hd-duration-base) var(--hd-ease-standard),translate var(--hd-duration-base) var(--hd-ease-standard),overlay var(--hd-duration-base) allow-discrete,display var(--hd-duration-base) allow-discrete}.ui-modal-3IDi9:not([open])[open],.ui-modal-3IDi9[open][open]{opacity:1;translate:0 0}@starting-style{.ui-modal-3IDi9:not([open])[open],.ui-modal-3IDi9[open][open]{opacity:0;translate:0 100%}}}@media (max-width: 640px) and (prefers-reduced-motion: reduce){.ui-modal-3IDi9:not([open]),.ui-modal-3IDi9[open]{transition:none}}.ui-modal__panel--qLSz{display:flex;flex-direction:column;max-height:90dvh;background-color:var(--hd-bg-overlay);border:1px solid var(--hd-border);border-radius:var(--hd-radius-lg);box-shadow:var(--hd-shadow-3);overflow:hidden}@media (max-width: 640px){.ui-modal__panel--qLSz{max-height:92dvh;border-radius:var(--hd-radius-lg) var(--hd-radius-lg) 0 0;border-bottom:none}}.ui-modal__header-meWm6{display:flex;align-items:flex-start;gap:var(--hd-space-3);padding:var(--hd-space-4) var(--hd-space-5);border-bottom:1px solid var(--hd-border);flex-shrink:0}@media (max-width: 640px){.ui-modal__header-meWm6{padding:var(--hd-space-4);padding-left:max(var(--hd-space-4),env(safe-area-inset-left,0px));padding-right:max(var(--hd-space-4),env(safe-area-inset-right,0px))}}.ui-modal__icon-df2dd{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:var(--hd-radius-sm);font-size:24px}.ui-modal__icon--neutral-QSL7c{background-color:var(--hd-bg-raised);border:1px solid var(--hd-border);color:var(--hd-text-2)}.ui-modal__icon--danger-6V90a{background-color:var(--hd-danger-bg);border:1px solid var(--hd-danger-line);color:var(--hd-danger-fg)}.ui-modal__icon--warning-a--FX{background-color:var(--hd-
|
|
1
|
+
@layer ui{.ui-modal-3IDi9{border:none;padding:0;background:none;color:var(--hd-text);max-width:min(92vw,560px);width:100%;max-height:90dvh}.ui-modal--sm-A7WsS{max-width:min(92vw,440px)}.ui-modal--lg-z99Em{max-width:min(92vw,880px)}.ui-modal--xl-g3d6F{max-width:min(94vw,1040px)}.ui-modal-3IDi9{opacity:0;translate:0 6px;transition:opacity var(--hd-duration-fast) var(--hd-ease-standard),translate var(--hd-duration-fast) var(--hd-ease-standard),overlay var(--hd-duration-fast) allow-discrete,display var(--hd-duration-fast) allow-discrete}.ui-modal-3IDi9[open]{opacity:1;translate:0 0}@starting-style{.ui-modal-3IDi9[open]{opacity:0;translate:0 6px}}@media (prefers-reduced-motion: reduce){.ui-modal-3IDi9{transition:none}}.ui-modal-3IDi9::backdrop{opacity:0;transition:opacity var(--hd-duration-fast) var(--hd-ease-standard),overlay var(--hd-duration-fast) allow-discrete,display var(--hd-duration-fast) allow-discrete}.ui-modal-3IDi9[open]::backdrop{opacity:1}@starting-style{.ui-modal-3IDi9[open]::backdrop{opacity:0}}@media (prefers-reduced-motion: reduce){.ui-modal-3IDi9::backdrop{transition:none}}.ui-modal-3IDi9:focus-visible{outline:none}.ui-modal-3IDi9:focus-visible .ui-modal__panel--qLSz{outline:var(--ui-ring-width, 2px) solid var(--ui-ring-color, var(--hd-focus));outline-offset:var(--ui-ring-offset, -2px)}.ui-modal-3IDi9::backdrop{background-color:var(--hd-scrim);-webkit-backdrop-filter:blur(var(--ui-scrim-blur, 3px));backdrop-filter:blur(var(--ui-scrim-blur, 3px))}@media (max-width: 640px){.ui-modal-3IDi9,.ui-modal--sm-A7WsS,.ui-modal--lg-z99Em,.ui-modal--xl-g3d6F{max-width:none;width:100%;max-height:calc(92dvh - env(safe-area-inset-top,0px));margin:auto 0 0;margin-bottom:max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px))}.ui-modal-3IDi9:not([open]),.ui-modal-3IDi9[open]{opacity:0;translate:0 100%;transition:opacity var(--hd-duration-base) var(--hd-ease-standard),translate var(--hd-duration-base) var(--hd-ease-standard),overlay var(--hd-duration-base) allow-discrete,display var(--hd-duration-base) allow-discrete}.ui-modal-3IDi9:not([open])[open],.ui-modal-3IDi9[open][open]{opacity:1;translate:0 0}@starting-style{.ui-modal-3IDi9:not([open])[open],.ui-modal-3IDi9[open][open]{opacity:0;translate:0 100%}}}@media (max-width: 640px) and (prefers-reduced-motion: reduce){.ui-modal-3IDi9:not([open]),.ui-modal-3IDi9[open]{transition:none}}.ui-modal__panel--qLSz{display:flex;flex-direction:column;max-height:90dvh;background-color:var(--hd-bg-overlay);border:1px solid var(--hd-border);border-radius:var(--hd-radius-lg);box-shadow:var(--hd-shadow-3);overflow:hidden}@media (max-width: 640px){.ui-modal__panel--qLSz{max-height:92dvh;border-radius:var(--hd-radius-lg) var(--hd-radius-lg) 0 0;border-bottom:none}}.ui-modal__header-meWm6{display:flex;align-items:flex-start;gap:var(--hd-space-3);padding:var(--hd-space-4) var(--hd-space-5);border-bottom:1px solid var(--hd-border);flex-shrink:0}@media (max-width: 640px){.ui-modal__header-meWm6{padding:var(--hd-space-4);padding-left:max(var(--hd-space-4),env(safe-area-inset-left,0px));padding-right:max(var(--hd-space-4),env(safe-area-inset-right,0px))}}.ui-modal__icon-df2dd{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border-radius:var(--hd-radius-sm);font-size:24px}.ui-modal__icon--neutral-QSL7c{background-color:var(--hd-bg-raised);border:1px solid var(--hd-border);color:var(--hd-text-2)}.ui-modal__icon--danger-6V90a{background-color:var(--hd-danger-bg);border:1px solid var(--hd-danger-line);color:var(--hd-danger-fg)}.ui-modal__icon--warning-a--FX{background-color:var(--hd-bg-raised);border:1px solid var(--hd-border-strong);color:var(--hd-text)}.ui-modal__icon--success-YWxZs,.ui-modal__icon--info-WRLah{background-color:var(--hd-info-bg);border:1px solid var(--hd-info-line);color:var(--hd-info-fg)}.ui-modal__heading-PwDS8{display:flex;flex-direction:column;gap:var(--hd-space-1);flex:1;min-width:0;padding-top:2px}.ui-modal__title-80Sh6{font-family:var(--hd-font-display);font-size:var(--hd-type-h4-size);font-weight:var(--hd-type-h4-weight);font-stretch:var(--hd-type-h4-stretch);line-height:var(--hd-type-h4-line-height);letter-spacing:var(--hd-type-h4-letter-spacing);color:var(--hd-text);margin:0;text-wrap:balance}.ui-modal__description-fsCHI{font-size:var(--hd-type-small-size);line-height:var(--hd-type-body-line-height);color:var(--hd-text-2);margin:0;max-width:68ch}.ui-modal__close-vFPbw{flex-shrink:0;margin-top:-2px}.ui-modal__body-PDF12{padding:var(--hd-space-5);position:relative;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:var(--hd-border-strong) transparent}.ui-modal__body-PDF12::-webkit-scrollbar{width:8px;height:8px}.ui-modal__body-PDF12::-webkit-scrollbar-track{background:transparent}.ui-modal__body-PDF12::-webkit-scrollbar-thumb{background-color:var(--hd-border-strong);border-radius:var(--hd-radius-pill);border:2px solid transparent;background-clip:content-box}.ui-modal__body-PDF12::-webkit-scrollbar-thumb:hover{background-color:var(--hd-text-3)}@media (max-width: 640px){.ui-modal__body-PDF12{padding:var(--hd-space-4);padding-left:max(var(--hd-space-4),env(safe-area-inset-left,0px));padding-right:max(var(--hd-space-4),env(safe-area-inset-right,0px))}.ui-modal__body-PDF12:last-child{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)))}}.ui-modal__footer-CCCkx{display:flex;flex-wrap:wrap;align-items:center;gap:var(--hd-space-2);justify-content:flex-end;padding:var(--hd-space-4) var(--hd-space-5);border-top:1px solid var(--hd-border);background-color:var(--hd-bg-raised);flex-shrink:0}@media (max-width: 640px){.ui-modal__footer-CCCkx{padding:var(--hd-space-3) var(--hd-space-4);padding-left:max(var(--hd-space-4),env(safe-area-inset-left,0px));padding-right:max(var(--hd-space-4),env(safe-area-inset-right,0px));padding-bottom:max(var(--hd-space-3),env(safe-area-inset-bottom,0px) - max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px)));flex-direction:column-reverse}.ui-modal__footer-CCCkx>*{width:100%}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),x=require("react"),o=require("../../helpers/class-name.helper.cjs"),b=require("../../helpers/component.helper.cjs"),a={default:{"progress":"ui-progress-99MrX","progress__track":"ui-progress__track-Qbp9t","progress__track--xs":"ui-progress__track--xs-CgHUU","progress__track--sm":"ui-progress__track--sm-dbHZq","progress__track--md":"ui-progress__track--md-v1GdW","progress__track--indeterminate":"ui-progress__track--indeterminate-8fMxl","progress__fill":"ui-progress__fill-Bam55","progress__fill--
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),x=require("react"),o=require("../../helpers/class-name.helper.cjs"),b=require("../../helpers/component.helper.cjs"),a={default:{"progress":"ui-progress-99MrX","progress__track":"ui-progress__track-Qbp9t","progress__track--xs":"ui-progress__track--xs-CgHUU","progress__track--sm":"ui-progress__track--sm-dbHZq","progress__track--md":"ui-progress__track--md-v1GdW","progress__track--indeterminate":"ui-progress__track--indeterminate-8fMxl","progress__fill":"ui-progress__fill-Bam55","progress__fill--ink":"ui-progress__fill--ink-Eh798","progress__fill--danger":"ui-progress__fill--danger-cuqj0","progress__value":"ui-progress__value-3FYxj","circle":"ui-circle-9cn2w","circle__svg":"ui-circle__svg-0IwkR","circle__track":"ui-circle__track-zY2qc","circle__fill":"ui-circle__fill-Jbde6","circle__fill--ink":"ui-circle__fill--ink-QUa9a","circle__fill--danger":"ui-circle__fill--danger-4E3Z8","circle--indeterminate":"ui-circle--indeterminate-cITY6","circle__label":"ui-circle__label-A3nJB"}},p=(t,l)=>!Number.isFinite(t)||!Number.isFinite(l)||l<=0?0:Math.min(100,Math.max(0,t/l*100)),N=({value:t,max:l=100,label:n,"aria-labelledby":d,valueText:c,isValueVisible:u,tone:m="brand",size:r="md",className:h,testId:_})=>{const e=t===void 0,i=e?0:p(t,l);return s.jsxs("div",{className:o.cx(a.default.progress,h),"data-testid":_,children:[s.jsx("div",{role:"progressbar","aria-label":n,"aria-labelledby":d,"aria-valuenow":e?void 0:Math.round(i),"aria-valuemin":e?void 0:0,"aria-valuemax":e?void 0:100,"aria-valuetext":e?void 0:c,className:o.cx(a.default.progress__track,a.default[`progress__track--${r}`],e&&a.default["progress__track--indeterminate"]),children:s.jsx("span",{className:o.cx(a.default.progress__fill,a.default[`progress__fill--${m}`]),style:e?void 0:{inlineSize:`${i}%`}})}),u&&!e&&s.jsx("span",{className:a.default.progress__value,"aria-hidden":!0,children:c??`%${Math.round(i)}`})]})},j=x.memo(b.named(N,"Progress")),M=({value:t,max:l=100,label:n,"aria-labelledby":d,valueText:c,isValueVisible:u,tone:m="brand",size:r=44,className:h,testId:_})=>{const e=t===void 0,i=e?25:p(t,l),f=Math.max(3,Math.round(r*.1)),v=(r-f)/2,g=2*Math.PI*v;return s.jsxs("div",{className:o.cx(a.default.circle,e&&a.default["circle--indeterminate"],h),style:{width:r,height:r},"data-testid":_,children:[s.jsxs("svg",{className:a.default.circle__svg,width:r,height:r,viewBox:`0 0 ${r} ${r}`,role:"progressbar","aria-label":n,"aria-labelledby":d,"aria-valuenow":e?void 0:Math.round(i),"aria-valuemin":e?void 0:0,"aria-valuemax":e?void 0:100,"aria-valuetext":e?void 0:c,children:[s.jsx("circle",{className:a.default.circle__track,cx:r/2,cy:r/2,r:v,fill:"none",strokeWidth:f}),s.jsx("circle",{className:o.cx(a.default.circle__fill,a.default[`circle__fill--${m}`]),cx:r/2,cy:r/2,r:v,fill:"none",strokeWidth:f,strokeDasharray:g,strokeDashoffset:g*(1-i/100)})]}),u&&!e&&s.jsx("span",{className:a.default.circle__label,"aria-hidden":!0,children:c??`%${Math.round(i)}`})]})},y=b.named(x.memo(M),"ProgressCircle");exports.ProgressCircle=y;exports.default=j;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/Progress/index.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** Yüzdeyi 0-100 aralığına kırpar; ölçek sıfır genişlikteyse 0 döner. */\nconst toPercent = (value: number, max: number): number => {\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) return 0;\n return Math.min(100, Math.max(0, (value / max) * 100));\n};\n\n/**\n * The accessible name (2.2): `label` (written as `aria-label`), or `aria-labelledby` pointing at\n * text already on screen — a heading or the file name above the bar — so it is not written twice.\n * One of the two is required.\n */\nexport type ProgressNameProps =\n | {\n /** Çubuğun erişilebilir adı (\"Yükleme\", \"Ödeme adımı\"). */\n label: string;\n 'aria-labelledby'?: never;\n }\n | {\n label?: never;\n /** The id(s) of visible text that names the bar (2.2). */\n 'aria-labelledby': string;\n };\n\ntype Props = ProgressNameProps & {\n /**\n * Tamamlanan miktar. `undefined` → BELİRSİZ ilerleme (sonu bilinmiyor); çubuk kendi kendine akar.\n */\n value?: number;\n /** Ölçeğin üst ucu. */\n max?: number;\n /** Ekran okuyucuya okunan METİN karşılığı (\"3 / 5 dosya\"). */\n valueText?: string;\n /** Yüzdeyi çubuğun yanında GÖRÜNÜR olarak yazar. */\n isValueVisible?: boolean;\n /**\n * ⚠ `brand` 5.0'dan beri MÜREKKEP çizer (`selected` — ilerleme bir seçim göstergesi), yeşil\n * DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı\n * kırardı ve kazancı yalnızca isim olurdu.\n */\n tone?: 'brand' | '
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/Progress/index.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** Yüzdeyi 0-100 aralığına kırpar; ölçek sıfır genişlikteyse 0 döner. */\nconst toPercent = (value: number, max: number): number => {\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) return 0;\n return Math.min(100, Math.max(0, (value / max) * 100));\n};\n\n/**\n * The accessible name (2.2): `label` (written as `aria-label`), or `aria-labelledby` pointing at\n * text already on screen — a heading or the file name above the bar — so it is not written twice.\n * One of the two is required.\n */\nexport type ProgressNameProps =\n | {\n /** Çubuğun erişilebilir adı (\"Yükleme\", \"Ödeme adımı\"). */\n label: string;\n 'aria-labelledby'?: never;\n }\n | {\n label?: never;\n /** The id(s) of visible text that names the bar (2.2). */\n 'aria-labelledby': string;\n };\n\ntype Props = ProgressNameProps & {\n /**\n * Tamamlanan miktar. `undefined` → BELİRSİZ ilerleme (sonu bilinmiyor); çubuk kendi kendine akar.\n */\n value?: number;\n /** Ölçeğin üst ucu. */\n max?: number;\n /** Ekran okuyucuya okunan METİN karşılığı (\"3 / 5 dosya\"). */\n valueText?: string;\n /** Yüzdeyi çubuğun yanında GÖRÜNÜR olarak yazar. */\n isValueVisible?: boolean;\n /**\n * ⚠ `brand` 5.0'dan beri MÜREKKEP çizer (`selected` — ilerleme bir seçim göstergesi), yeşil\n * DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı\n * kırardı ve kazancı yalnızca isim olurdu.\n */\n tone?: 'brand' | 'ink' | 'danger';\n /** `xs` 2 px — satır içi gösterge (bağlam doluluğu); etiket yanında okunur. */\n size?: 'xs' | 'sm' | 'md';\n className?: string;\n testId?: string;\n};\n\n/** İlerleme çubuğu — ölçülebilir bekleme. */\nconst Progress = ({\n value,\n max = 100,\n label,\n 'aria-labelledby': labelledBy,\n valueText,\n isValueVisible,\n tone = 'brand',\n size = 'md',\n className,\n testId,\n}: Props) => {\n const isIndeterminate = value === undefined;\n const percent = isIndeterminate ? 0 : toPercent(value, max);\n\n return (\n <div className={cx(styles.progress, className)} data-testid={testId}>\n <div\n role=\"progressbar\"\n aria-label={label}\n aria-labelledby={labelledBy}\n /* BELIRSIZ kipte `aria-valuenow` YAZILMAZ. */\n aria-valuenow={isIndeterminate ? undefined : Math.round(percent)}\n aria-valuemin={isIndeterminate ? undefined : 0}\n aria-valuemax={isIndeterminate ? undefined : 100}\n aria-valuetext={isIndeterminate ? undefined : valueText}\n className={cx(\n styles.progress__track,\n styles[`progress__track--${size}`],\n isIndeterminate && styles['progress__track--indeterminate'],\n )}\n >\n <span\n className={cx(styles.progress__fill, styles[`progress__fill--${tone}`])}\n style={isIndeterminate ? undefined : { inlineSize: `${percent}%` }}\n />\n </div>\n\n {isValueVisible && !isIndeterminate && (\n /*\n * Gorsel yuzde `aria-hidden`: ayni bilgi zaten `progressbar`in degerinde ve iki kez\n * duyurulmasi gurultu.\n */\n <span className={styles.progress__value} aria-hidden>\n {valueText ?? `%${Math.round(percent)}`}\n </span>\n )}\n </div>\n );\n};\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Progress, 'Progress')) as typeof Progress;\n\ntype CircleProps = ProgressNameProps & {\n /** Tamamlanan miktar. `undefined` → BELİRSİZ; çember döner. */\n value?: number;\n max?: number;\n valueText?: string;\n /** Yüzdeyi çemberin ortasına yazar. */\n isValueVisible?: boolean;\n /**\n * ⚠ `brand` 5.0'dan beri MÜREKKEP çizer (`selected` — ilerleme bir seçim göstergesi), yeşil\n * DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı\n * kırardı ve kazancı yalnızca isim olurdu.\n */\n tone?: 'brand' | 'ink' | 'danger';\n /** Dış çap (px). */\n size?: number;\n className?: string;\n testId?: string;\n};\n\n/** Dairesel ilerleme. */\nconst ProgressCircleBase = ({\n value,\n max = 100,\n label,\n 'aria-labelledby': labelledBy,\n valueText,\n isValueVisible,\n tone = 'brand',\n size = 44,\n className,\n testId,\n}: CircleProps) => {\n const isIndeterminate = value === undefined;\n const percent = isIndeterminate ? 25 : toPercent(value, max);\n\n /*\n * Cizgi kalinligi capin ~%10'u: sabit bir kalinlik kucuk cemberde kutuyu dolduruyor, buyugunde\n * sac teline donuyordu.\n */\n const stroke = Math.max(3, Math.round(size * 0.1));\n const radius = (size - stroke) / 2;\n const circumference = 2 * Math.PI * radius;\n\n return (\n <div\n className={cx(styles.circle, isIndeterminate && styles['circle--indeterminate'], className)}\n style={{ width: size, height: size }}\n data-testid={testId}\n >\n <svg\n className={styles.circle__svg}\n width={size}\n height={size}\n viewBox={`0 0 ${size} ${size}`}\n role=\"progressbar\"\n aria-label={label}\n aria-labelledby={labelledBy}\n aria-valuenow={isIndeterminate ? undefined : Math.round(percent)}\n aria-valuemin={isIndeterminate ? undefined : 0}\n aria-valuemax={isIndeterminate ? undefined : 100}\n aria-valuetext={isIndeterminate ? undefined : valueText}\n >\n <circle\n className={styles.circle__track}\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n strokeWidth={stroke}\n />\n <circle\n className={cx(styles.circle__fill, styles[`circle__fill--${tone}`])}\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n strokeWidth={stroke}\n strokeDasharray={circumference}\n strokeDashoffset={circumference * (1 - percent / 100)}\n />\n </svg>\n\n {isValueVisible && !isIndeterminate && (\n <span className={styles.circle__label} aria-hidden>\n {valueText ?? `%${Math.round(percent)}`}\n </span>\n )}\n </div>\n );\n};\n\nexport const ProgressCircle = /*#__PURE__*/ named(\n /*#__PURE__*/ memo(ProgressCircleBase),\n 'ProgressCircle',\n);\n"],"names":["toPercent","value","max","Progress","label","labelledBy","valueText","isValueVisible","tone","size","className","testId","isIndeterminate","percent","jsxs","cx","styles","jsx","memo","named","ProgressCircleBase","stroke","radius","circumference","ProgressCircle"],"mappings":"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"}
|
|
@@ -28,7 +28,7 @@ type Props = ProgressNameProps & {
|
|
|
28
28
|
* DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı
|
|
29
29
|
* kırardı ve kazancı yalnızca isim olurdu.
|
|
30
30
|
*/
|
|
31
|
-
tone?: 'brand' | '
|
|
31
|
+
tone?: 'brand' | 'ink' | 'danger';
|
|
32
32
|
/** `xs` 2 px — satır içi gösterge (bağlam doluluğu); etiket yanında okunur. */
|
|
33
33
|
size?: 'xs' | 'sm' | 'md';
|
|
34
34
|
className?: string;
|
|
@@ -50,7 +50,7 @@ type CircleProps = ProgressNameProps & {
|
|
|
50
50
|
* DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı
|
|
51
51
|
* kırardı ve kazancı yalnızca isim olurdu.
|
|
52
52
|
*/
|
|
53
|
-
tone?: 'brand' | '
|
|
53
|
+
tone?: 'brand' | 'ink' | 'danger';
|
|
54
54
|
/** Dış çap (px). */
|
|
55
55
|
size?: number;
|
|
56
56
|
className?: string;
|
|
@@ -28,7 +28,7 @@ type Props = ProgressNameProps & {
|
|
|
28
28
|
* DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı
|
|
29
29
|
* kırardı ve kazancı yalnızca isim olurdu.
|
|
30
30
|
*/
|
|
31
|
-
tone?: 'brand' | '
|
|
31
|
+
tone?: 'brand' | 'ink' | 'danger';
|
|
32
32
|
/** `xs` 2 px — satır içi gösterge (bağlam doluluğu); etiket yanında okunur. */
|
|
33
33
|
size?: 'xs' | 'sm' | 'md';
|
|
34
34
|
className?: string;
|
|
@@ -50,7 +50,7 @@ type CircleProps = ProgressNameProps & {
|
|
|
50
50
|
* DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı
|
|
51
51
|
* kırardı ve kazancı yalnızca isim olurdu.
|
|
52
52
|
*/
|
|
53
|
-
tone?: 'brand' | '
|
|
53
|
+
tone?: 'brand' | 'ink' | 'danger';
|
|
54
54
|
/** Dış çap (px). */
|
|
55
55
|
size?: number;
|
|
56
56
|
className?: string;
|
|
@@ -2,7 +2,7 @@ import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as f } from "react";
|
|
3
3
|
import { cx as c } from "../../helpers/class-name.helper.js";
|
|
4
4
|
import { named as N } from "../../helpers/component.helper.js";
|
|
5
|
-
const a = {"progress":"ui-progress-99MrX","progress__track":"ui-progress__track-Qbp9t","progress__track--xs":"ui-progress__track--xs-CgHUU","progress__track--sm":"ui-progress__track--sm-dbHZq","progress__track--md":"ui-progress__track--md-v1GdW","progress__track--indeterminate":"ui-progress__track--indeterminate-8fMxl","progress__fill":"ui-progress__fill-Bam55","progress__fill--
|
|
5
|
+
const a = {"progress":"ui-progress-99MrX","progress__track":"ui-progress__track-Qbp9t","progress__track--xs":"ui-progress__track--xs-CgHUU","progress__track--sm":"ui-progress__track--sm-dbHZq","progress__track--md":"ui-progress__track--md-v1GdW","progress__track--indeterminate":"ui-progress__track--indeterminate-8fMxl","progress__fill":"ui-progress__fill-Bam55","progress__fill--ink":"ui-progress__fill--ink-Eh798","progress__fill--danger":"ui-progress__fill--danger-cuqj0","progress__value":"ui-progress__value-3FYxj","circle":"ui-circle-9cn2w","circle__svg":"ui-circle__svg-0IwkR","circle__track":"ui-circle__track-zY2qc","circle__fill":"ui-circle__fill-Jbde6","circle__fill--ink":"ui-circle__fill--ink-QUa9a","circle__fill--danger":"ui-circle__fill--danger-4E3Z8","circle--indeterminate":"ui-circle--indeterminate-cITY6","circle__label":"ui-circle__label-A3nJB"};
|
|
6
6
|
const y = (i, s) => !Number.isFinite(i) || !Number.isFinite(s) || s <= 0 ? 0 : Math.min(100, Math.max(0, i / s * 100)), k = ({
|
|
7
7
|
value: i,
|
|
8
8
|
max: s = 100,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Progress/index.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** Yüzdeyi 0-100 aralığına kırpar; ölçek sıfır genişlikteyse 0 döner. */\nconst toPercent = (value: number, max: number): number => {\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) return 0;\n return Math.min(100, Math.max(0, (value / max) * 100));\n};\n\n/**\n * The accessible name (2.2): `label` (written as `aria-label`), or `aria-labelledby` pointing at\n * text already on screen — a heading or the file name above the bar — so it is not written twice.\n * One of the two is required.\n */\nexport type ProgressNameProps =\n | {\n /** Çubuğun erişilebilir adı (\"Yükleme\", \"Ödeme adımı\"). */\n label: string;\n 'aria-labelledby'?: never;\n }\n | {\n label?: never;\n /** The id(s) of visible text that names the bar (2.2). */\n 'aria-labelledby': string;\n };\n\ntype Props = ProgressNameProps & {\n /**\n * Tamamlanan miktar. `undefined` → BELİRSİZ ilerleme (sonu bilinmiyor); çubuk kendi kendine akar.\n */\n value?: number;\n /** Ölçeğin üst ucu. */\n max?: number;\n /** Ekran okuyucuya okunan METİN karşılığı (\"3 / 5 dosya\"). */\n valueText?: string;\n /** Yüzdeyi çubuğun yanında GÖRÜNÜR olarak yazar. */\n isValueVisible?: boolean;\n /**\n * ⚠ `brand` 5.0'dan beri MÜREKKEP çizer (`selected` — ilerleme bir seçim göstergesi), yeşil\n * DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı\n * kırardı ve kazancı yalnızca isim olurdu.\n */\n tone?: 'brand' | '
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Progress/index.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** Yüzdeyi 0-100 aralığına kırpar; ölçek sıfır genişlikteyse 0 döner. */\nconst toPercent = (value: number, max: number): number => {\n if (!Number.isFinite(value) || !Number.isFinite(max) || max <= 0) return 0;\n return Math.min(100, Math.max(0, (value / max) * 100));\n};\n\n/**\n * The accessible name (2.2): `label` (written as `aria-label`), or `aria-labelledby` pointing at\n * text already on screen — a heading or the file name above the bar — so it is not written twice.\n * One of the two is required.\n */\nexport type ProgressNameProps =\n | {\n /** Çubuğun erişilebilir adı (\"Yükleme\", \"Ödeme adımı\"). */\n label: string;\n 'aria-labelledby'?: never;\n }\n | {\n label?: never;\n /** The id(s) of visible text that names the bar (2.2). */\n 'aria-labelledby': string;\n };\n\ntype Props = ProgressNameProps & {\n /**\n * Tamamlanan miktar. `undefined` → BELİRSİZ ilerleme (sonu bilinmiyor); çubuk kendi kendine akar.\n */\n value?: number;\n /** Ölçeğin üst ucu. */\n max?: number;\n /** Ekran okuyucuya okunan METİN karşılığı (\"3 / 5 dosya\"). */\n valueText?: string;\n /** Yüzdeyi çubuğun yanında GÖRÜNÜR olarak yazar. */\n isValueVisible?: boolean;\n /**\n * ⚠ `brand` 5.0'dan beri MÜREKKEP çizer (`selected` — ilerleme bir seçim göstergesi), yeşil\n * DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı\n * kırardı ve kazancı yalnızca isim olurdu.\n */\n tone?: 'brand' | 'ink' | 'danger';\n /** `xs` 2 px — satır içi gösterge (bağlam doluluğu); etiket yanında okunur. */\n size?: 'xs' | 'sm' | 'md';\n className?: string;\n testId?: string;\n};\n\n/** İlerleme çubuğu — ölçülebilir bekleme. */\nconst Progress = ({\n value,\n max = 100,\n label,\n 'aria-labelledby': labelledBy,\n valueText,\n isValueVisible,\n tone = 'brand',\n size = 'md',\n className,\n testId,\n}: Props) => {\n const isIndeterminate = value === undefined;\n const percent = isIndeterminate ? 0 : toPercent(value, max);\n\n return (\n <div className={cx(styles.progress, className)} data-testid={testId}>\n <div\n role=\"progressbar\"\n aria-label={label}\n aria-labelledby={labelledBy}\n /* BELIRSIZ kipte `aria-valuenow` YAZILMAZ. */\n aria-valuenow={isIndeterminate ? undefined : Math.round(percent)}\n aria-valuemin={isIndeterminate ? undefined : 0}\n aria-valuemax={isIndeterminate ? undefined : 100}\n aria-valuetext={isIndeterminate ? undefined : valueText}\n className={cx(\n styles.progress__track,\n styles[`progress__track--${size}`],\n isIndeterminate && styles['progress__track--indeterminate'],\n )}\n >\n <span\n className={cx(styles.progress__fill, styles[`progress__fill--${tone}`])}\n style={isIndeterminate ? undefined : { inlineSize: `${percent}%` }}\n />\n </div>\n\n {isValueVisible && !isIndeterminate && (\n /*\n * Gorsel yuzde `aria-hidden`: ayni bilgi zaten `progressbar`in degerinde ve iki kez\n * duyurulmasi gurultu.\n */\n <span className={styles.progress__value} aria-hidden>\n {valueText ?? `%${Math.round(percent)}`}\n </span>\n )}\n </div>\n );\n};\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(Progress, 'Progress')) as typeof Progress;\n\ntype CircleProps = ProgressNameProps & {\n /** Tamamlanan miktar. `undefined` → BELİRSİZ; çember döner. */\n value?: number;\n max?: number;\n valueText?: string;\n /** Yüzdeyi çemberin ortasına yazar. */\n isValueVisible?: boolean;\n /**\n * ⚠ `brand` 5.0'dan beri MÜREKKEP çizer (`selected` — ilerleme bir seçim göstergesi), yeşil\n * DEĞİL: yeşil yalnızca eylem, bağlantı ve odakta. Ad 4.x'ten kaldı; değiştirmek her çağrıyı\n * kırardı ve kazancı yalnızca isim olurdu.\n */\n tone?: 'brand' | 'ink' | 'danger';\n /** Dış çap (px). */\n size?: number;\n className?: string;\n testId?: string;\n};\n\n/** Dairesel ilerleme. */\nconst ProgressCircleBase = ({\n value,\n max = 100,\n label,\n 'aria-labelledby': labelledBy,\n valueText,\n isValueVisible,\n tone = 'brand',\n size = 44,\n className,\n testId,\n}: CircleProps) => {\n const isIndeterminate = value === undefined;\n const percent = isIndeterminate ? 25 : toPercent(value, max);\n\n /*\n * Cizgi kalinligi capin ~%10'u: sabit bir kalinlik kucuk cemberde kutuyu dolduruyor, buyugunde\n * sac teline donuyordu.\n */\n const stroke = Math.max(3, Math.round(size * 0.1));\n const radius = (size - stroke) / 2;\n const circumference = 2 * Math.PI * radius;\n\n return (\n <div\n className={cx(styles.circle, isIndeterminate && styles['circle--indeterminate'], className)}\n style={{ width: size, height: size }}\n data-testid={testId}\n >\n <svg\n className={styles.circle__svg}\n width={size}\n height={size}\n viewBox={`0 0 ${size} ${size}`}\n role=\"progressbar\"\n aria-label={label}\n aria-labelledby={labelledBy}\n aria-valuenow={isIndeterminate ? undefined : Math.round(percent)}\n aria-valuemin={isIndeterminate ? undefined : 0}\n aria-valuemax={isIndeterminate ? undefined : 100}\n aria-valuetext={isIndeterminate ? undefined : valueText}\n >\n <circle\n className={styles.circle__track}\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n strokeWidth={stroke}\n />\n <circle\n className={cx(styles.circle__fill, styles[`circle__fill--${tone}`])}\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n strokeWidth={stroke}\n strokeDasharray={circumference}\n strokeDashoffset={circumference * (1 - percent / 100)}\n />\n </svg>\n\n {isValueVisible && !isIndeterminate && (\n <span className={styles.circle__label} aria-hidden>\n {valueText ?? `%${Math.round(percent)}`}\n </span>\n )}\n </div>\n );\n};\n\nexport const ProgressCircle = /*#__PURE__*/ named(\n /*#__PURE__*/ memo(ProgressCircleBase),\n 'ProgressCircle',\n);\n"],"names":["toPercent","value","max","Progress","label","labelledBy","valueText","isValueVisible","tone","size","className","testId","isIndeterminate","percent","jsxs","cx","styles","jsx","Progress$1","memo","named","ProgressCircleBase","stroke","radius","circumference","ProgressCircle"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-progress-99MrX{display:flex;align-items:center;gap:var(--hd-space-3);width:100%}.ui-progress__track-Qbp9t{position:relative;flex:1;min-width:0;border-radius:var(--hd-radius-pill);background-color:var(--hd-border);overflow:hidden}.ui-progress__track--xs-CgHUU{height:2px}.ui-progress__track--sm-dbHZq{height:4px}.ui-progress__track--md-v1GdW{height:8px}.ui-progress__track--indeterminate-8fMxl .ui-progress__fill-Bam55{inline-size:40%;animation:var(--ui-anim-progress-slide) 1.4s var(--hd-ease-standard) infinite}@media (prefers-reduced-motion: reduce){.ui-progress__track--indeterminate-8fMxl .ui-progress__fill-Bam55{animation:none;inline-size:50%}}.ui-progress__fill-Bam55{display:block;height:100%;border-radius:var(--hd-radius-pill);background-color:var(--hd-primary);transition:inline-size var(--hd-duration-base) var(--hd-ease-standard)}.ui-progress__fill--
|
|
1
|
+
@layer ui{.ui-progress-99MrX{display:flex;align-items:center;gap:var(--hd-space-3);width:100%}.ui-progress__track-Qbp9t{position:relative;flex:1;min-width:0;border-radius:var(--hd-radius-pill);background-color:var(--hd-border);overflow:hidden}.ui-progress__track--xs-CgHUU{height:2px}.ui-progress__track--sm-dbHZq{height:4px}.ui-progress__track--md-v1GdW{height:8px}.ui-progress__track--indeterminate-8fMxl .ui-progress__fill-Bam55{inline-size:40%;animation:var(--ui-anim-progress-slide) 1.4s var(--hd-ease-standard) infinite}@media (prefers-reduced-motion: reduce){.ui-progress__track--indeterminate-8fMxl .ui-progress__fill-Bam55{animation:none;inline-size:50%}}.ui-progress__fill-Bam55{display:block;height:100%;border-radius:var(--hd-radius-pill);background-color:var(--hd-primary);transition:inline-size var(--hd-duration-base) var(--hd-ease-standard)}.ui-progress__fill--ink-Eh798{background-color:var(--hd-text)}.ui-progress__fill--danger-cuqj0{background-color:var(--hd-danger-solid)}@media (prefers-reduced-motion: reduce){.ui-progress__fill-Bam55{transition:none}}@media (forced-colors: active){.ui-progress__fill-Bam55{background-color:Highlight;forced-color-adjust:none}}.ui-progress__value-3FYxj{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;flex-shrink:0;color:var(--hd-text-2);font-variant-numeric:tabular-nums}.ui-circle-9cn2w{display:inline-flex;position:relative;flex-shrink:0}.ui-circle__svg-0IwkR{rotate:-90deg}.ui-circle__track-zY2qc{stroke:var(--hd-border)}.ui-circle__fill-Jbde6{stroke:var(--hd-primary);stroke-linecap:round;transition:stroke-dashoffset var(--hd-duration-base) var(--hd-ease-standard)}.ui-circle__fill--ink-QUa9a{stroke:var(--hd-text)}.ui-circle__fill--danger-4E3Z8{stroke:var(--hd-danger-solid)}@media (prefers-reduced-motion: reduce){.ui-circle__fill-Jbde6{transition:none}}@media (forced-colors: active){.ui-circle__fill-Jbde6{stroke:Highlight;forced-color-adjust:none}}.ui-circle--indeterminate-cITY6 .ui-circle__svg-0IwkR{animation:var(--ui-anim-spin) .7s linear infinite}@media (prefers-reduced-motion: reduce){.ui-circle--indeterminate-cITY6 .ui-circle__svg-0IwkR{animation:none}}.ui-circle__label-A3nJB{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:var(--hd-text);font-variant-numeric:tabular-nums}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-rating-94dke{display:inline-flex;align-items:center;gap:var(--hd-space-2)}.ui-rating__stars-QkpVU{display:inline-flex;gap:1px;color:var(--hd-
|
|
1
|
+
@layer ui{.ui-rating-94dke{display:inline-flex;align-items:center;gap:var(--hd-space-2)}.ui-rating__stars-QkpVU{display:inline-flex;gap:1px;color:var(--hd-primary)}.ui-rating__empty-Wf6-K{color:var(--hd-border-strong)}.ui-rating__count-pIoEs{font-size:var(--hd-type-caption-size);color:var(--hd-text-2);font-variant-numeric:tabular-nums}.ui-rating__srOnly-E9h0d{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ui-rating--sm-AtY7U .ui-rating__stars-QkpVU{font-size:16px}.ui-rating--md-Q0nxN .ui-rating__stars-QkpVU{font-size:18px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-rating-neNnF{border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--hd-space-2)}.ui-rating--disabled-ZKjHa .ui-rating__legend-uYvFS,.ui-rating--disabled-ZKjHa .ui-rating__caption-13KFX,.ui-rating--disabled-ZKjHa .ui-rating__star--filled-L3AkT{color:var(--hd-text-3)}@media (forced-colors: active){.ui-rating--disabled-ZKjHa .ui-rating__legend-uYvFS,.ui-rating--disabled-ZKjHa .ui-rating__caption-13KFX,.ui-rating--disabled-ZKjHa .ui-rating__star--filled-L3AkT{color:GrayText}}.ui-rating--disabled-ZKjHa .ui-rating__star-BANFJ{cursor:not-allowed}@media (forced-colors: active){.ui-rating--disabled-ZKjHa .ui-rating__star-BANFJ{color:GrayText}}.ui-rating--disabled-ZKjHa .ui-rating__star-BANFJ:hover{transform:none}.ui-rating--readOnly-wWIFW .ui-rating__star-BANFJ{cursor:default}.ui-rating--readOnly-wWIFW .ui-rating__star-BANFJ:hover{transform:none}.ui-rating__legend-uYvFS{padding:0;font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-medium);color:var(--hd-text-2)}.ui-rating__stars-vJFLk{display:flex;gap:var(--hd-space-1)}.ui-rating__star-BANFJ{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:24px;color:var(--hd-border);cursor:pointer;transition:color var(--hd-duration-fast) var(--hd-ease-standard),transform var(--hd-duration-fast) var(--hd-ease-standard)}.ui-rating__star-BANFJ:hover{transform:scale(1.1)}.ui-rating__star--filled-L3AkT{color:var(--hd-
|
|
1
|
+
@layer ui{.ui-rating-neNnF{border:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--hd-space-2)}.ui-rating--disabled-ZKjHa .ui-rating__legend-uYvFS,.ui-rating--disabled-ZKjHa .ui-rating__caption-13KFX,.ui-rating--disabled-ZKjHa .ui-rating__star--filled-L3AkT{color:var(--hd-text-3)}@media (forced-colors: active){.ui-rating--disabled-ZKjHa .ui-rating__legend-uYvFS,.ui-rating--disabled-ZKjHa .ui-rating__caption-13KFX,.ui-rating--disabled-ZKjHa .ui-rating__star--filled-L3AkT{color:GrayText}}.ui-rating--disabled-ZKjHa .ui-rating__star-BANFJ{cursor:not-allowed}@media (forced-colors: active){.ui-rating--disabled-ZKjHa .ui-rating__star-BANFJ{color:GrayText}}.ui-rating--disabled-ZKjHa .ui-rating__star-BANFJ:hover{transform:none}.ui-rating--readOnly-wWIFW .ui-rating__star-BANFJ{cursor:default}.ui-rating--readOnly-wWIFW .ui-rating__star-BANFJ:hover{transform:none}.ui-rating__legend-uYvFS{padding:0;font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-medium);color:var(--hd-text-2)}.ui-rating__stars-vJFLk{display:flex;gap:var(--hd-space-1)}.ui-rating__star-BANFJ{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:24px;color:var(--hd-border);cursor:pointer;transition:color var(--hd-duration-fast) var(--hd-ease-standard),transform var(--hd-duration-fast) var(--hd-ease-standard)}.ui-rating__star-BANFJ:hover{transform:scale(1.1)}.ui-rating__star--filled-L3AkT{color:var(--hd-primary)}.ui-rating__star-BANFJ:focus-within{outline:var(--ui-ring-width, 2px) solid var(--ui-ring-color, var(--hd-focus));outline-offset:var(--ui-ring-offset, 2px);border-radius:var(--hd-radius-xs)}@media (prefers-reduced-motion: reduce){.ui-rating__star-BANFJ{transition:none}.ui-rating__star-BANFJ:hover{transform:none}}.ui-rating__input-s2iiO,.ui-rating__srOnly-iSCoz{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ui-rating__caption-13KFX{font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-medium);color:var(--hd-text);min-height:1.4em}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-stat-Xb7wp{display:flex;flex-direction:column;gap:var(--hd-space-1);position:relative;padding:var(--hd-space-4);border:1px solid var(--hd-border);border-radius:var(--hd-radius-md);background-color:var(--hd-bg-surface)}.ui-stat--sm-XnK8p{padding:var(--hd-space-3)}.ui-stat--plain-N-3RC{padding:0;border:0;background:none}.ui-stat--plain-N-3RC .ui-stat__icon-MB8NU{inset-block-start:0;inset-inline-end:0}.ui-stat--inline-IpE0J{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:var(--hd-space-1) var(--hd-space-2);padding:0;border:0;background:none}.ui-stat--inline-IpE0J .ui-stat__icon-MB8NU{position:static;align-self:center;font-size:16px}.ui-stat--inline-IpE0J .ui-stat__label-kUX2m{padding-inline-end:0}.ui-stat--inline-IpE0J .ui-stat__value--6p13{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;font-variant-numeric:tabular-nums;font-weight:var(--hd-font-weight-medium);letter-spacing:normal}.ui-stat--inline-IpE0J .ui-stat__unit-mjHVk{font-size:inherit}.ui-stat__icon-MB8NU{position:absolute;inset-block-start:var(--hd-space-3);inset-inline-end:var(--hd-space-3);display:inline-flex;font-size:20px;color:var(--hd-text-3)}.ui-stat__label-kUX2m{font-family:var(--ui-stat-label-font, inherit);font-size:var(--ui-stat-label-size, var(--hd-type-caption-size));font-weight:var(--ui-stat-label-weight, var(--hd-font-weight-medium));letter-spacing:var(--ui-stat-label-tracking, normal);text-transform:var(--ui-stat-label-transform, none);color:var(--hd-text-2);padding-inline-end:var(--hd-space-6)}.ui-stat__value--6p13{display:flex;align-items:baseline;gap:var(--hd-space-1);font-family:var(--ui-stat-value-font, var(--hd-font-display));font-size:var(--hd-type-h2-size);font-weight:var(--ui-stat-value-weight, var(--hd-font-weight-bold));line-height:var(--hd-type-h2-line-height);letter-spacing:var(--ui-stat-value-tracking, var(--hd-type-h2-letter-spacing));color:var(--hd-text);font-variant-numeric:tabular-nums}.ui-stat--sm-XnK8p .ui-stat__value--6p13{font-size:var(--hd-type-h3-size)}.ui-stat__unit-mjHVk{font-family:var(--ui-stat-unit-font, inherit);font-size:var(--ui-stat-unit-size, var(--hd-type-small-size));font-weight:var(--hd-font-weight-medium);color:var(--hd-text-2);letter-spacing:var(--ui-stat-unit-tracking, normal);text-transform:var(--ui-stat-unit-transform, none)}.ui-stat__delta-YKpOu{display:flex;align-items:center;gap:2px;align-self:flex-start;font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);font-variant-numeric:tabular-nums;color:var(--hd-text-2)}.ui-stat__delta-YKpOu svg{font-size:16px;flex-shrink:0}.ui-stat__delta--positive-1AUAM{color:var(--hd-
|
|
1
|
+
@layer ui{.ui-stat-Xb7wp{display:flex;flex-direction:column;gap:var(--hd-space-1);position:relative;padding:var(--hd-space-4);border:1px solid var(--hd-border);border-radius:var(--hd-radius-md);background-color:var(--hd-bg-surface)}.ui-stat--sm-XnK8p{padding:var(--hd-space-3)}.ui-stat--plain-N-3RC{padding:0;border:0;background:none}.ui-stat--plain-N-3RC .ui-stat__icon-MB8NU{inset-block-start:0;inset-inline-end:0}.ui-stat--inline-IpE0J{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:var(--hd-space-1) var(--hd-space-2);padding:0;border:0;background:none}.ui-stat--inline-IpE0J .ui-stat__icon-MB8NU{position:static;align-self:center;font-size:16px}.ui-stat--inline-IpE0J .ui-stat__label-kUX2m{padding-inline-end:0}.ui-stat--inline-IpE0J .ui-stat__value--6p13{font-family:var(--hd-font-mono);font-size:var(--hd-type-caption-size);letter-spacing:.02em;font-variant-numeric:tabular-nums;font-weight:var(--hd-font-weight-medium);letter-spacing:normal}.ui-stat--inline-IpE0J .ui-stat__unit-mjHVk{font-size:inherit}.ui-stat__icon-MB8NU{position:absolute;inset-block-start:var(--hd-space-3);inset-inline-end:var(--hd-space-3);display:inline-flex;font-size:20px;color:var(--hd-text-3)}.ui-stat__label-kUX2m{font-family:var(--ui-stat-label-font, inherit);font-size:var(--ui-stat-label-size, var(--hd-type-caption-size));font-weight:var(--ui-stat-label-weight, var(--hd-font-weight-medium));letter-spacing:var(--ui-stat-label-tracking, normal);text-transform:var(--ui-stat-label-transform, none);color:var(--hd-text-2);padding-inline-end:var(--hd-space-6)}.ui-stat__value--6p13{display:flex;align-items:baseline;gap:var(--hd-space-1);font-family:var(--ui-stat-value-font, var(--hd-font-display));font-size:var(--hd-type-h2-size);font-weight:var(--ui-stat-value-weight, var(--hd-font-weight-bold));line-height:var(--hd-type-h2-line-height);letter-spacing:var(--ui-stat-value-tracking, var(--hd-type-h2-letter-spacing));color:var(--hd-text);font-variant-numeric:tabular-nums}.ui-stat--sm-XnK8p .ui-stat__value--6p13{font-size:var(--hd-type-h3-size)}.ui-stat__unit-mjHVk{font-family:var(--ui-stat-unit-font, inherit);font-size:var(--ui-stat-unit-size, var(--hd-type-small-size));font-weight:var(--hd-font-weight-medium);color:var(--hd-text-2);letter-spacing:var(--ui-stat-unit-tracking, normal);text-transform:var(--ui-stat-unit-transform, none)}.ui-stat__delta-YKpOu{display:flex;align-items:center;gap:2px;align-self:flex-start;font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);font-variant-numeric:tabular-nums;color:var(--hd-text-2)}.ui-stat__delta-YKpOu svg{font-size:16px;flex-shrink:0}.ui-stat__delta--positive-1AUAM{color:var(--hd-primary-text)}.ui-stat__delta--negative--WWEP{color:var(--hd-danger-fg)}.ui-stat__description-Yvw6J{font-size:var(--hd-type-caption-size);color:var(--hd-text-3)}.ui-stat__srOnly-YKebA{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),d=require("react"),n=require("../../helpers/class-name.helper.cjs"),e={default:{"strip":"ui-strip-jnFU6","strip__item":"ui-strip__item-Vl6Ih","strip__value":"ui-strip__value-urSHH","strip__label":"ui-strip__label-7ZnfI","strip--page":"ui-strip--page-VjEtb","strip--
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),d=require("react"),n=require("../../helpers/class-name.helper.cjs"),e={default:{"strip":"ui-strip-jnFU6","strip__item":"ui-strip__item-Vl6Ih","strip__value":"ui-strip__value-urSHH","strip__label":"ui-strip__label-7ZnfI","strip--page":"ui-strip--page-VjEtb","strip--brand":"ui-strip--brand-SCqk1"}},o=({items:s,variant:t="page","aria-label":r,className:i,testId:u})=>a.jsx("ul",{role:"list",className:n.cx(e.default.strip,e.default[`strip--${t}`],i),"aria-label":r,"data-testid":u,children:s.map((l,c)=>a.jsxs("li",{className:e.default.strip__item,children:[a.jsx("span",{className:e.default.strip__value,children:l.value})," ",a.jsx("span",{className:e.default.strip__label,children:l.label})]},c))}),p=d.memo(o);exports.default=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/StatStrip/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** One fact: the value is read first, then its label (\"12 yıl\" · \"tecrübe\"). */\nexport type StatStripItem = {\n value: ReactNode;\n label: ReactNode;\n};\n\n/** `page`: on a theme surface. `
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/StatStrip/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** One fact: the value is read first, then its label (\"12 yıl\" · \"tecrübe\"). */\nexport type StatStripItem = {\n value: ReactNode;\n label: ReactNode;\n};\n\n/** `page`: on a theme surface. `brand`: the deep strip at the foot of a `BrandSurface`, full width. */\nexport type StatStripVariant = 'page' | 'brand';\n\ntype Props = {\n items: readonly StatStripItem[];\n variant?: StatStripVariant;\n /** Names the list when the facts need a context (\"Han Dijit in numbers\"). */\n 'aria-label'?: string;\n className?: string;\n testId?: string;\n};\n\n/**\n * StatStrip — a row of short facts (value and label) separated by thin dividers: the trust\n * line under a hero or at the foot of the brand surface. A list, read value then label; the\n * dividers are borders, never content. Rows wrap on a narrow screen and a wrapped row starts\n * without a divider.\n */\nconst StatStrip: FC<Props> = ({\n items,\n variant = 'page',\n 'aria-label': ariaLabel,\n className,\n testId,\n}) => (\n /*\n * `role=\"list\"`: Safari drops the list semantics of a `ul` whose markers are removed, and the\n * count (\"list, 4 items\") is what tells a screen reader these facts belong together.\n */\n <ul\n role=\"list\"\n className={cx(styles.strip, styles[`strip--${variant}`], className)}\n aria-label={ariaLabel}\n data-testid={testId}\n >\n {items.map((item, index) => (\n // The facts are a fixed, ordered list given at once: the position is their identity.\n <li key={index} className={styles.strip__item}>\n <span className={styles.strip__value}>{item.value}</span>{' '}\n <span className={styles.strip__label}>{item.label}</span>\n </li>\n ))}\n </ul>\n);\n\nexport default /*#__PURE__*/ memo(StatStrip) as typeof StatStrip;\n"],"names":["StatStrip","items","variant","ariaLabel","className","testId","jsx","cx","styles","item","index","jsxs"],"mappings":"0PA8BMA,EAAuB,CAAC,CAC5B,MAAAC,EACA,QAAAC,EAAU,OACV,aAAcC,EACd,UAAAC,EACA,OAAAC,CACF,IAKEC,EAAAA,IAAC,KAAA,CACC,KAAK,OACL,UAAWC,EAAAA,GAAGC,EAAAA,QAAO,MAAOA,EAAAA,QAAO,UAAUN,CAAO,EAAE,EAAGE,CAAS,EAClE,aAAYD,EACZ,cAAaE,EAEZ,SAAAJ,EAAM,IAAI,CAACQ,EAAMC,IAEhBC,EAAAA,KAAC,KAAA,CAAe,UAAWH,EAAAA,QAAO,YAChC,SAAA,CAAAF,MAAC,OAAA,CAAK,UAAWE,EAAAA,QAAO,aAAe,WAAK,MAAM,EAAQ,UACzD,OAAA,CAAK,UAAWA,EAAAA,QAAO,aAAe,WAAK,KAAA,CAAM,CAAA,CAAA,EAF3CE,CAGT,CACD,CAAA,CAAA,EAILA,SAAkCV,CAAS"}
|
|
@@ -4,8 +4,8 @@ export type StatStripItem = {
|
|
|
4
4
|
value: ReactNode;
|
|
5
5
|
label: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
/** `page`: on a theme surface. `
|
|
8
|
-
export type StatStripVariant = 'page' | '
|
|
7
|
+
/** `page`: on a theme surface. `brand`: the deep strip at the foot of a `BrandSurface`, full width. */
|
|
8
|
+
export type StatStripVariant = 'page' | 'brand';
|
|
9
9
|
type Props = {
|
|
10
10
|
items: readonly StatStripItem[];
|
|
11
11
|
variant?: StatStripVariant;
|
|
@@ -16,7 +16,7 @@ type Props = {
|
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* StatStrip — a row of short facts (value and label) separated by thin dividers: the trust
|
|
19
|
-
* line under a hero or at the foot of the brand
|
|
19
|
+
* line under a hero or at the foot of the brand surface. A list, read value then label; the
|
|
20
20
|
* dividers are borders, never content. Rows wrap on a narrow screen and a wrapped row starts
|
|
21
21
|
* without a divider.
|
|
22
22
|
*/
|
|
@@ -4,8 +4,8 @@ export type StatStripItem = {
|
|
|
4
4
|
value: ReactNode;
|
|
5
5
|
label: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
/** `page`: on a theme surface. `
|
|
8
|
-
export type StatStripVariant = 'page' | '
|
|
7
|
+
/** `page`: on a theme surface. `brand`: the deep strip at the foot of a `BrandSurface`, full width. */
|
|
8
|
+
export type StatStripVariant = 'page' | 'brand';
|
|
9
9
|
type Props = {
|
|
10
10
|
items: readonly StatStripItem[];
|
|
11
11
|
variant?: StatStripVariant;
|
|
@@ -16,7 +16,7 @@ type Props = {
|
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* StatStrip — a row of short facts (value and label) separated by thin dividers: the trust
|
|
19
|
-
* line under a hero or at the foot of the brand
|
|
19
|
+
* line under a hero or at the foot of the brand surface. A list, read value then label; the
|
|
20
20
|
* dividers are borders, never content. Rows wrap on a narrow screen and a wrapped row starts
|
|
21
21
|
* without a divider.
|
|
22
22
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { memo as c } from "react";
|
|
3
3
|
import { cx as n } from "../../helpers/class-name.helper.js";
|
|
4
|
-
const a = {"strip":"ui-strip-jnFU6","strip__item":"ui-strip__item-Vl6Ih","strip__value":"ui-strip__value-urSHH","strip__label":"ui-strip__label-7ZnfI","strip--page":"ui-strip--page-VjEtb","strip--
|
|
4
|
+
const a = {"strip":"ui-strip-jnFU6","strip__item":"ui-strip__item-Vl6Ih","strip__value":"ui-strip__value-urSHH","strip__label":"ui-strip__label-7ZnfI","strip--page":"ui-strip--page-VjEtb","strip--brand":"ui-strip--brand-SCqk1"};
|
|
5
5
|
const d = ({
|
|
6
6
|
items: e,
|
|
7
7
|
variant: r = "page",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/StatStrip/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** One fact: the value is read first, then its label (\"12 yıl\" · \"tecrübe\"). */\nexport type StatStripItem = {\n value: ReactNode;\n label: ReactNode;\n};\n\n/** `page`: on a theme surface. `
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/StatStrip/index.tsx"],"sourcesContent":["import { type FC, memo, type ReactNode } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\n\nimport styles from './index.module.scss';\n\n/** One fact: the value is read first, then its label (\"12 yıl\" · \"tecrübe\"). */\nexport type StatStripItem = {\n value: ReactNode;\n label: ReactNode;\n};\n\n/** `page`: on a theme surface. `brand`: the deep strip at the foot of a `BrandSurface`, full width. */\nexport type StatStripVariant = 'page' | 'brand';\n\ntype Props = {\n items: readonly StatStripItem[];\n variant?: StatStripVariant;\n /** Names the list when the facts need a context (\"Han Dijit in numbers\"). */\n 'aria-label'?: string;\n className?: string;\n testId?: string;\n};\n\n/**\n * StatStrip — a row of short facts (value and label) separated by thin dividers: the trust\n * line under a hero or at the foot of the brand surface. A list, read value then label; the\n * dividers are borders, never content. Rows wrap on a narrow screen and a wrapped row starts\n * without a divider.\n */\nconst StatStrip: FC<Props> = ({\n items,\n variant = 'page',\n 'aria-label': ariaLabel,\n className,\n testId,\n}) => (\n /*\n * `role=\"list\"`: Safari drops the list semantics of a `ul` whose markers are removed, and the\n * count (\"list, 4 items\") is what tells a screen reader these facts belong together.\n */\n <ul\n role=\"list\"\n className={cx(styles.strip, styles[`strip--${variant}`], className)}\n aria-label={ariaLabel}\n data-testid={testId}\n >\n {items.map((item, index) => (\n // The facts are a fixed, ordered list given at once: the position is their identity.\n <li key={index} className={styles.strip__item}>\n <span className={styles.strip__value}>{item.value}</span>{' '}\n <span className={styles.strip__label}>{item.label}</span>\n </li>\n ))}\n </ul>\n);\n\nexport default /*#__PURE__*/ memo(StatStrip) as typeof StatStrip;\n"],"names":["StatStrip","items","variant","ariaLabel","className","testId","jsx","cx","styles","item","index","jsxs"],"mappings":";;;;AA8BA,MAAMA,IAAuB,CAAC;AAAA,EAC5B,OAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,cAAcC;AAAA,EACd,WAAAC;AAAA,EACA,QAAAC;AACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAKE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWC,EAAGC,EAAO,OAAOA,EAAO,UAAUN,CAAO,EAAE,GAAGE,CAAS;AAAA,MAClE,cAAYD;AAAA,MACZ,eAAaE;AAAA,MAEZ,UAAAJ,EAAM,IAAI,CAACQ,GAAMC;AAAA;AAAA,QAEhB,gBAAAC,EAAC,MAAA,EAAe,WAAWH,EAAO,aAChC,UAAA;AAAA,UAAA,gBAAAF,EAAC,QAAA,EAAK,WAAWE,EAAO,cAAe,YAAK,OAAM;AAAA,UAAQ;AAAA,4BACzD,QAAA,EAAK,WAAWA,EAAO,cAAe,YAAK,MAAA,CAAM;AAAA,QAAA,EAAA,GAF3CE,CAGT;AAAA,OACD;AAAA,IAAA;AAAA,EAAA;AAAA,GAILA,sBAAkCV,CAAS;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer ui{.ui-strip-jnFU6{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));margin:0;padding:0;overflow:hidden;list-style:none}.ui-strip__item-Vl6Ih{display:flex;flex-direction:column;align-items:center;gap:var(--hd-space-1);margin-inline-start:-1px;padding:var(--hd-space-1) clamp(var(--hd-space-4),2.5vw,var(--hd-space-6));border-inline-start:1px solid var(--ui-strip-line);text-align:center}.ui-strip__value-urSHH{font-family:var(--hd-font-display);font-size:var(--hd-type-h4-size);font-weight:var(--hd-font-weight-semibold);line-height:var(--hd-type-h4-line-height);letter-spacing:var(--hd-type-h4-letter-spacing);color:var(--ui-strip-value);font-variant-numeric:tabular-nums}.ui-strip__label-7ZnfI{font-family:var(--hd-font-body);font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-medium);line-height:var(--hd-type-h4-line-height);color:var(--ui-strip-label)}.ui-strip--page-VjEtb{--ui-strip-line: var(--hd-border);--ui-strip-value: var(--hd-text);--ui-strip-label: var(--hd-text-2)}.ui-strip--
|
|
1
|
+
@layer ui{.ui-strip-jnFU6{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));margin:0;padding:0;overflow:hidden;list-style:none}.ui-strip__item-Vl6Ih{display:flex;flex-direction:column;align-items:center;gap:var(--hd-space-1);margin-inline-start:-1px;padding:var(--hd-space-1) clamp(var(--hd-space-4),2.5vw,var(--hd-space-6));border-inline-start:1px solid var(--ui-strip-line);text-align:center}.ui-strip__value-urSHH{font-family:var(--hd-font-display);font-size:var(--hd-type-h4-size);font-weight:var(--hd-font-weight-semibold);line-height:var(--hd-type-h4-line-height);letter-spacing:var(--hd-type-h4-letter-spacing);color:var(--ui-strip-value);font-variant-numeric:tabular-nums}.ui-strip__label-7ZnfI{font-family:var(--hd-font-body);font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-medium);line-height:var(--hd-type-h4-line-height);color:var(--ui-strip-label)}.ui-strip--page-VjEtb{--ui-strip-line: var(--hd-border);--ui-strip-value: var(--hd-text);--ui-strip-label: var(--hd-text-2)}.ui-strip--brand-SCqk1{--ui-strip-line: var(--hd-brand-surface-line);--ui-strip-value: var(--hd-on-primary);--ui-strip-label: var(--hd-on-primary);padding-block:var(--hd-space-4);border-top:1px solid var(--hd-brand-surface-line);background-color:var(--hd-brand-surface-deep)}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),d=require("react"),s=require("../../helpers/class-name.helper.cjs"),o=require("../../helpers/component.helper.cjs"),e={default:{"status":"ui-status-EcSH2","status__dot":"ui-status__dot-CeQ59","status__dot--neutral":"ui-status__dot--neutral-qUw4d","status__dot--
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),d=require("react"),s=require("../../helpers/class-name.helper.cjs"),o=require("../../helpers/component.helper.cjs"),e={default:{"status":"ui-status-EcSH2","status__dot":"ui-status__dot-CeQ59","status__dot--neutral":"ui-status__dot--neutral-qUw4d","status__dot--info":"ui-status__dot--info-u9lrx","status__dot--ink":"ui-status__dot--ink-YC-jo","status__dot--danger":"ui-status__dot--danger-ijrpR","status__dot--pulsing":"ui-status__dot--pulsing-l97tj","status__label":"ui-status__label-UXRIa"}},c=({tone:a="neutral",label:u,isPulsing:l,className:n,testId:r})=>t.jsxs("span",{className:s.cx(e.default.status,n),"data-testid":r,children:[t.jsx("span",{"aria-hidden":!0,className:s.cx(e.default.status__dot,e.default[`status__dot--${a}`],l&&e.default["status__dot--pulsing"])}),t.jsx("span",{className:e.default.status__label,children:u})]}),i=d.memo(o.named(c,"StatusDot"));exports.default=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../src/components/StatusDot/index.tsx"],"sourcesContent":["import { type FC, memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\nexport type StatusDotTone = 'neutral' | '
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/components/StatusDot/index.tsx"],"sourcesContent":["import { type FC, memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** `info` (cobalt) for a good or live state, `ink` for one that needs a look, `danger` for a fault. */\nexport type StatusDotTone = 'neutral' | 'info' | 'ink' | 'danger';\n\ntype Props = {\n tone?: StatusDotTone;\n /**\n * Durumun okunan adı (\"Bağlı\", \"Çalışıyor\"). ZORUNLU: nokta yalnızca renk ve renk tek başına\n * anlam taşıyamaz (WCAG 1.4.1). Görsel olarak gizli metin olarak yazılır.\n */\n label: string;\n /** Süren bir iş — \"çalışıyor\", \"bağlanıyor\". Azaltılmış harekette durur. */\n isPulsing?: boolean;\n className?: string;\n testId?: string;\n};\n\n/**\n * Durum noktası — bağlantı, araç çağrısı, meşguliyet.\n *\n * ⚠ No brand tone (`brand`): a dot carries a state, not the brand. Ongoing work is `neutral` +\n * `isPulsing`. 3.0: the palette has no green or amber; a good state is `info` (cobalt), one\n * that needs a look `ink`, and the label says which.\n */\nconst StatusDot: FC<Props> = ({ tone = 'neutral', label, isPulsing, className, testId }) => (\n <span className={cx(styles.status, className)} data-testid={testId}>\n <span\n aria-hidden\n className={cx(\n styles.status__dot,\n styles[`status__dot--${tone}`],\n isPulsing && styles['status__dot--pulsing'],\n )}\n />\n <span className={styles.status__label}>{label}</span>\n </span>\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(StatusDot, 'StatusDot')) as typeof StatusDot;\n"],"names":["StatusDot","tone","label","isPulsing","className","testId","jsxs","cx","styles","jsx","index","memo","named"],"mappings":"0SA8BMA,EAAuB,CAAC,CAAE,KAAAC,EAAO,UAAW,MAAAC,EAAO,UAAAC,EAAW,UAAAC,EAAW,OAAAC,CAAA,IAC7EC,EAAAA,KAAC,OAAA,CAAK,UAAWC,EAAAA,GAAGC,UAAO,OAAQJ,CAAS,EAAG,cAAaC,EAC1D,SAAA,CAAAI,EAAAA,IAAC,OAAA,CACC,cAAW,GACX,UAAWF,EAAAA,GACTC,EAAAA,QAAO,YACPA,EAAAA,QAAO,gBAAgBP,CAAI,EAAE,EAC7BE,GAAaK,EAAAA,QAAO,sBAAsB,CAAA,CAC5C,CAAA,EAEFC,EAAAA,IAAC,OAAA,CAAK,UAAWD,EAAAA,QAAO,cAAgB,SAAAN,CAAA,CAAM,CAAA,EAChD,EAGFQ,EAA6BC,OAAmBC,EAAAA,MAAMZ,EAAW,WAAW,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
2
|
+
/** `info` (cobalt) for a good or live state, `ink` for one that needs a look, `danger` for a fault. */
|
|
3
|
+
export type StatusDotTone = 'neutral' | 'info' | 'ink' | 'danger';
|
|
3
4
|
type Props = {
|
|
4
5
|
tone?: StatusDotTone;
|
|
5
6
|
/**
|
|
@@ -15,8 +16,9 @@ type Props = {
|
|
|
15
16
|
/**
|
|
16
17
|
* Durum noktası — bağlantı, araç çağrısı, meşguliyet.
|
|
17
18
|
*
|
|
18
|
-
* ⚠
|
|
19
|
-
* `isPulsing
|
|
19
|
+
* ⚠ No brand tone (`brand`): a dot carries a state, not the brand. Ongoing work is `neutral` +
|
|
20
|
+
* `isPulsing`. 3.0: the palette has no green or amber; a good state is `info` (cobalt), one
|
|
21
|
+
* that needs a look `ink`, and the label says which.
|
|
20
22
|
*/
|
|
21
23
|
declare const StatusDot: FC<Props>;
|
|
22
24
|
declare const _default: typeof StatusDot;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
2
|
+
/** `info` (cobalt) for a good or live state, `ink` for one that needs a look, `danger` for a fault. */
|
|
3
|
+
export type StatusDotTone = 'neutral' | 'info' | 'ink' | 'danger';
|
|
3
4
|
type Props = {
|
|
4
5
|
tone?: StatusDotTone;
|
|
5
6
|
/**
|
|
@@ -15,8 +16,9 @@ type Props = {
|
|
|
15
16
|
/**
|
|
16
17
|
* Durum noktası — bağlantı, araç çağrısı, meşguliyet.
|
|
17
18
|
*
|
|
18
|
-
* ⚠
|
|
19
|
-
* `isPulsing
|
|
19
|
+
* ⚠ No brand tone (`brand`): a dot carries a state, not the brand. Ongoing work is `neutral` +
|
|
20
|
+
* `isPulsing`. 3.0: the palette has no green or amber; a good state is `info` (cobalt), one
|
|
21
|
+
* that needs a look `ink`, and the label says which.
|
|
20
22
|
*/
|
|
21
23
|
declare const StatusDot: FC<Props>;
|
|
22
24
|
declare const _default: typeof StatusDot;
|
|
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo as n } from "react";
|
|
3
3
|
import { cx as a } from "../../helpers/class-name.helper.js";
|
|
4
4
|
import { named as l } from "../../helpers/component.helper.js";
|
|
5
|
-
const t = {"status":"ui-status-EcSH2","status__dot":"ui-status__dot-CeQ59","status__dot--neutral":"ui-status__dot--neutral-qUw4d","status__dot--
|
|
5
|
+
const t = {"status":"ui-status-EcSH2","status__dot":"ui-status__dot-CeQ59","status__dot--neutral":"ui-status__dot--neutral-qUw4d","status__dot--info":"ui-status__dot--info-u9lrx","status__dot--ink":"ui-status__dot--ink-YC-jo","status__dot--danger":"ui-status__dot--danger-ijrpR","status__dot--pulsing":"ui-status__dot--pulsing-l97tj","status__label":"ui-status__label-UXRIa"};
|
|
6
6
|
const u = ({ tone: o = "neutral", label: e, isPulsing: m, className: r, testId: d }) => /* @__PURE__ */ i("span", { className: a(t.status, r), "data-testid": d, children: [
|
|
7
7
|
/* @__PURE__ */ s(
|
|
8
8
|
"span",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/StatusDot/index.tsx"],"sourcesContent":["import { type FC, memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\nexport type StatusDotTone = 'neutral' | '
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/StatusDot/index.tsx"],"sourcesContent":["import { type FC, memo } from 'react';\n\nimport { cx } from '../../helpers/class-name.helper';\nimport { named } from '../../helpers/component.helper';\n\nimport styles from './index.module.scss';\n\n/** `info` (cobalt) for a good or live state, `ink` for one that needs a look, `danger` for a fault. */\nexport type StatusDotTone = 'neutral' | 'info' | 'ink' | 'danger';\n\ntype Props = {\n tone?: StatusDotTone;\n /**\n * Durumun okunan adı (\"Bağlı\", \"Çalışıyor\"). ZORUNLU: nokta yalnızca renk ve renk tek başına\n * anlam taşıyamaz (WCAG 1.4.1). Görsel olarak gizli metin olarak yazılır.\n */\n label: string;\n /** Süren bir iş — \"çalışıyor\", \"bağlanıyor\". Azaltılmış harekette durur. */\n isPulsing?: boolean;\n className?: string;\n testId?: string;\n};\n\n/**\n * Durum noktası — bağlantı, araç çağrısı, meşguliyet.\n *\n * ⚠ No brand tone (`brand`): a dot carries a state, not the brand. Ongoing work is `neutral` +\n * `isPulsing`. 3.0: the palette has no green or amber; a good state is `info` (cobalt), one\n * that needs a look `ink`, and the label says which.\n */\nconst StatusDot: FC<Props> = ({ tone = 'neutral', label, isPulsing, className, testId }) => (\n <span className={cx(styles.status, className)} data-testid={testId}>\n <span\n aria-hidden\n className={cx(\n styles.status__dot,\n styles[`status__dot--${tone}`],\n isPulsing && styles['status__dot--pulsing'],\n )}\n />\n <span className={styles.status__label}>{label}</span>\n </span>\n);\n\nexport default /*#__PURE__*/ memo(/*#__PURE__*/ named(StatusDot, 'StatusDot')) as typeof StatusDot;\n"],"names":["StatusDot","tone","label","isPulsing","className","testId","jsxs","cx","styles","jsx","index","memo","named"],"mappings":";;;;;AA8BA,MAAMA,IAAuB,CAAC,EAAE,MAAAC,IAAO,WAAW,OAAAC,GAAO,WAAAC,GAAW,WAAAC,GAAW,QAAAC,EAAA,MAC7E,gBAAAC,EAAC,QAAA,EAAK,WAAWC,EAAGC,EAAO,QAAQJ,CAAS,GAAG,eAAaC,GAC1D,UAAA;AAAA,EAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAW;AAAA,MACX,WAAWF;AAAA,QACTC,EAAO;AAAA,QACPA,EAAO,gBAAgBP,CAAI,EAAE;AAAA,QAC7BE,KAAaK,EAAO,sBAAsB;AAAA,MAAA;AAAA,IAC5C;AAAA,EAAA;AAAA,EAEF,gBAAAC,EAAC,QAAA,EAAK,WAAWD,EAAO,eAAgB,UAAAN,EAAA,CAAM;AAAA,GAChD,GAGFQ,IAA6B,gBAAAC,EAAmB,gBAAAC,EAAMZ,GAAW,WAAW,CAAC;"}
|