@bigtablet/design-system 4.9.1 → 4.10.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.
Files changed (155) hide show
  1. package/README.md +28 -19
  2. package/dist/esm/index.js +1 -0
  3. package/dist/esm/styles/colors/index.js +1 -1
  4. package/dist/esm/styles/skeleton/index.js +1 -1
  5. package/dist/esm/styles/theme.css +1 -1
  6. package/dist/esm/text/balanced.js +1 -0
  7. package/dist/esm/text/core.js +1 -0
  8. package/dist/esm/text/dom.js +1 -0
  9. package/dist/esm/text/index.js +1 -0
  10. package/dist/esm/text/layout.js +1 -0
  11. package/dist/esm/text/measure.js +1 -0
  12. package/dist/esm/text/prehydrate-script.js +1 -0
  13. package/dist/esm/text/prehydrate.js +1 -0
  14. package/dist/esm/text/react.js +1 -0
  15. package/dist/esm/text/text.css +4 -0
  16. package/dist/esm/ui/display/accordion/style.css +1 -1
  17. package/dist/esm/ui/display/badge/index.js +1 -1
  18. package/dist/esm/ui/display/card/style.css +1 -1
  19. package/dist/esm/ui/display/hero/index.js +1 -1
  20. package/dist/esm/ui/display/hero/style.css +1 -1
  21. package/dist/esm/ui/display/list-item/style.css +1 -1
  22. package/dist/esm/ui/display/media-card/index.js +1 -1
  23. package/dist/esm/ui/display/media-card/style.css +1 -1
  24. package/dist/esm/ui/display/prose/style.css +1 -1
  25. package/dist/esm/ui/display/stat/style.css +1 -1
  26. package/dist/esm/ui/feedback/alert/index.js +1 -1
  27. package/dist/esm/ui/feedback/alert/style.css +1 -1
  28. package/dist/esm/ui/feedback/empty-state/index.js +1 -1
  29. package/dist/esm/ui/feedback/empty-state/style.css +1 -1
  30. package/dist/esm/ui/feedback/error-state/index.js +1 -1
  31. package/dist/esm/ui/feedback/error-state/style.css +1 -1
  32. package/dist/esm/ui/feedback/inline-alert/index.js +1 -1
  33. package/dist/esm/ui/feedback/skeleton/style.css +1 -1
  34. package/dist/esm/ui/feedback/toast/index.js +1 -1
  35. package/dist/esm/ui/feedback/toast/style.css +1 -1
  36. package/dist/esm/ui/forms/checkbox/style.css +1 -1
  37. package/dist/esm/ui/forms/field/style.css +1 -1
  38. package/dist/esm/ui/forms/file/index.js +1 -1
  39. package/dist/esm/ui/forms/file/style.css +1 -1
  40. package/dist/esm/ui/forms/image-cropper/style.css +1 -1
  41. package/dist/esm/ui/forms/otp-input/index.js +1 -1
  42. package/dist/esm/ui/forms/otp-input/style.css +1 -1
  43. package/dist/esm/ui/forms/radio/style.css +1 -1
  44. package/dist/esm/ui/forms/radio-group/style.css +1 -1
  45. package/dist/esm/ui/forms/segmented-control/style.css +1 -1
  46. package/dist/esm/ui/forms/textarea/index.js +1 -1
  47. package/dist/esm/ui/forms/textarea/style.css +1 -1
  48. package/dist/esm/ui/forms/textfield/index.js +1 -1
  49. package/dist/esm/ui/forms/textfield/style.css +1 -1
  50. package/dist/esm/ui/forms/toggle/style.css +1 -1
  51. package/dist/esm/ui/layout/app-shell/style.css +1 -1
  52. package/dist/esm/ui/layout/page-header/index.js +1 -1
  53. package/dist/esm/ui/layout/page-header/style.css +1 -1
  54. package/dist/esm/ui/navigation/menu/index.js +1 -1
  55. package/dist/esm/ui/navigation/nav-bar/index.js +1 -1
  56. package/dist/esm/ui/navigation/nav-bar/style.css +1 -1
  57. package/dist/esm/ui/navigation/sidebar/index.js +1 -1
  58. package/dist/esm/ui/navigation/sidebar/style.css +1 -1
  59. package/dist/esm/ui/navigation/stepper/index.js +1 -1
  60. package/dist/esm/ui/navigation/stepper/style.css +1 -1
  61. package/dist/esm/ui/navigation/tabs/style.css +1 -1
  62. package/dist/esm/ui/overlay/drawer/style.css +1 -1
  63. package/dist/esm/ui/overlay/modal/index.js +1 -1
  64. package/dist/esm/ui/overlay/modal/style.css +1 -1
  65. package/dist/esm/ui/overlay/popover/style.css +1 -1
  66. package/dist/esm/utils/index.js +1 -1
  67. package/dist/esm/utils/reveal-inline.js +1 -0
  68. package/dist/esm/utils/scroll-lock.js +1 -1
  69. package/dist/index.css +1 -1
  70. package/dist/index.d.ts +21 -14
  71. package/dist/llms/avoid.md +20 -0
  72. package/dist/llms/components/accordion.md +58 -0
  73. package/dist/llms/components/alert.md +131 -0
  74. package/dist/llms/components/app-shell.md +77 -0
  75. package/dist/llms/components/avatar.md +42 -0
  76. package/dist/llms/components/badge.md +47 -0
  77. package/dist/llms/components/bottom-nav.md +74 -0
  78. package/dist/llms/components/breadcrumb.md +48 -0
  79. package/dist/llms/components/button.md +91 -0
  80. package/dist/llms/components/card.md +49 -0
  81. package/dist/llms/components/checkbox.md +45 -0
  82. package/dist/llms/components/chip.md +68 -0
  83. package/dist/llms/components/combobox.md +98 -0
  84. package/dist/llms/components/container.md +44 -0
  85. package/dist/llms/components/copy-button.md +73 -0
  86. package/dist/llms/components/data-view.md +168 -0
  87. package/dist/llms/components/date-calendar.md +60 -0
  88. package/dist/llms/components/date-picker.md +82 -0
  89. package/dist/llms/components/date-range-picker.md +77 -0
  90. package/dist/llms/components/description-list.md +49 -0
  91. package/dist/llms/components/divider.md +34 -0
  92. package/dist/llms/components/drawer.md +64 -0
  93. package/dist/llms/components/dropdown.md +143 -0
  94. package/dist/llms/components/empty-state.md +38 -0
  95. package/dist/llms/components/error-state.md +38 -0
  96. package/dist/llms/components/field.md +110 -0
  97. package/dist/llms/components/file-input.md +47 -0
  98. package/dist/llms/components/filter-bar.md +90 -0
  99. package/dist/llms/components/grid.md +68 -0
  100. package/dist/llms/components/hero.md +58 -0
  101. package/dist/llms/components/icon-button.md +67 -0
  102. package/dist/llms/components/icon.md +41 -0
  103. package/dist/llms/components/image-cropper.md +77 -0
  104. package/dist/llms/components/inline-alert.md +46 -0
  105. package/dist/llms/components/linear-progress.md +29 -0
  106. package/dist/llms/components/list-item.md +51 -0
  107. package/dist/llms/components/locale-provider.md +77 -0
  108. package/dist/llms/components/media-card.md +56 -0
  109. package/dist/llms/components/menu.md +52 -0
  110. package/dist/llms/components/modal.md +108 -0
  111. package/dist/llms/components/nav-bar.md +91 -0
  112. package/dist/llms/components/otp-input.md +44 -0
  113. package/dist/llms/components/page-header.md +71 -0
  114. package/dist/llms/components/pagination.md +37 -0
  115. package/dist/llms/components/popover.md +48 -0
  116. package/dist/llms/components/prose.md +42 -0
  117. package/dist/llms/components/radio-group.md +93 -0
  118. package/dist/llms/components/section.md +40 -0
  119. package/dist/llms/components/segmented-control.md +86 -0
  120. package/dist/llms/components/sidebar.md +79 -0
  121. package/dist/llms/components/skeleton.md +42 -0
  122. package/dist/llms/components/spinner.md +37 -0
  123. package/dist/llms/components/stack.md +49 -0
  124. package/dist/llms/components/stat.md +41 -0
  125. package/dist/llms/components/stepper.md +104 -0
  126. package/dist/llms/components/table.md +136 -0
  127. package/dist/llms/components/tabs.md +146 -0
  128. package/dist/llms/components/tag-input.md +64 -0
  129. package/dist/llms/components/text-field.md +76 -0
  130. package/dist/llms/components/textarea.md +60 -0
  131. package/dist/llms/components/theme-provider.md +54 -0
  132. package/dist/llms/components/time-picker.md +59 -0
  133. package/dist/llms/components/timeline.md +54 -0
  134. package/dist/llms/components/toast.md +81 -0
  135. package/dist/llms/components/toggle.md +39 -0
  136. package/dist/llms/components/tooltip.md +40 -0
  137. package/dist/llms/components/top-loading.md +50 -0
  138. package/dist/llms/full.md +5416 -0
  139. package/dist/llms/index.md +132 -0
  140. package/dist/llms/recipes.md +228 -0
  141. package/dist/llms/text.md +58 -0
  142. package/dist/llms/tokens.md +330 -0
  143. package/dist/llms/vanilla.md +1632 -0
  144. package/dist/react-2EHR6KYq.d.ts +48 -0
  145. package/dist/styles/colors/_tokens.scss +4 -4
  146. package/dist/styles/layout/_index.scss +9 -1
  147. package/dist/styles/skeleton/_tokens.scss +4 -4
  148. package/dist/styles/typography/_index.scss +8 -3
  149. package/dist/text.d.ts +99 -0
  150. package/dist/vanilla/bigtablet.min.css +1 -1
  151. package/dist/vanilla/bigtablet.min.js +6 -6
  152. package/docs/AGENT_GUIDE.md +38 -36
  153. package/package.json +15 -14
  154. package/dist/esm/utils/sentences.css +0 -4
  155. package/dist/esm/utils/sentences.js +0 -1
package/README.md CHANGED
@@ -18,26 +18,33 @@ Crafted for clarity. Built on tokens. Ships with dark mode.
18
18
  <a href="https://github.com/Bigtablet/bigtablet-design-system/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/Bigtablet/bigtablet-design-system/ci.yml?style=for-the-badge&color=10b981&labelColor=000" alt="ci" /></a>
19
19
  </p>
20
20
 
21
- [**Documentation**](./docs/COMPONENTS.md)&nbsp;&nbsp;·&nbsp;&nbsp;[Storybook](https://bigtablet.github.io/bigtablet-design-system)&nbsp;&nbsp;·&nbsp;&nbsp;[NPM](https://www.npmjs.com/package/@bigtablet/design-system)&nbsp;&nbsp;·&nbsp;&nbsp;[🇰🇷 한국어](./README_KR.md)
21
+ [**Documentation**](./docs/COMPONENTS.md)&nbsp;&nbsp;·&nbsp;&nbsp;[Docs site](https://bigtablet.github.io/bigtablet-design-system/)&nbsp;&nbsp;·&nbsp;&nbsp;[NPM](https://www.npmjs.com/package/@bigtablet/design-system)&nbsp;&nbsp;·&nbsp;&nbsp;[🇰🇷 한국어](./README_KR.md)
22
22
 
23
23
  </div>
24
24
 
25
25
  <br />
26
26
 
27
27
  ```tsx
28
- import { ThemeProvider, Button, Modal, useToast } from "@bigtablet/design-system";
28
+ import { ThemeProvider, ToastProvider, Button, useToast } from "@bigtablet/design-system";
29
29
  // No CSS import needed - each component brings its own CSS plus the shared theme variables,
30
30
  // so a page that uses only Button ships about 3 kB of DS CSS (gzip) instead of 20 kB.
31
31
  // Next.js with webpack: add the package to `experimental.optimizePackageImports` (Turbopack needs nothing).
32
32
 
33
33
  export default function App() {
34
- const toast = useToast();
35
34
  return (
36
35
  <ThemeProvider>
37
- <Button onClick={() => toast.success("Saved")}>Save</Button>
36
+ <ToastProvider>
37
+ <SaveButton />
38
+ </ToastProvider>
38
39
  </ThemeProvider>
39
40
  );
40
41
  }
42
+
43
+ // useToast() needs a ToastProvider above it - call it in a child, not where the provider is rendered.
44
+ function SaveButton() {
45
+ const toast = useToast();
46
+ return <Button onClick={() => toast.success("Saved")}>Save</Button>;
47
+ }
41
48
  ```
42
49
 
43
50
  A complete React + TypeScript design system maintained by Bigtablet for internal product work. Open-sourced for reference - external use welcome, but minor versions may include breaking changes.
@@ -46,7 +53,7 @@ A complete React + TypeScript design system maintained by Bigtablet for internal
46
53
 
47
54
  ## What's inside
48
55
 
49
- - **40+ components** across forms, display, feedback, navigation, overlay, and layout<br />
56
+ - **60+ components** across forms, display, feedback, navigation, overlay, and layout<br />
50
57
  - **13 token domains** - colors, typography, spacing, motion, radius, elevation, and more - exposed as SCSS variables and CSS custom properties (plus a SCSS-only `layout` domain)<br />
51
58
  - **Light + dark mode** out of the box. `[data-theme="dark"]` or `prefers-color-scheme`, no theme provider required (but available via `ThemeProvider` for runtime toggling)<br />
52
59
  - **Vanilla JS bundle** for non-React backends - Thymeleaf, JSP, PHP, Django<br />
@@ -104,13 +111,14 @@ showAlert({ title: "Delete?", showCancel: true, onConfirm: ... });
104
111
  ## Components
105
112
 
106
113
  <table>
107
- <tr><td><b>Forms</b></td><td>Button · IconButton · CopyButton · TextField · Textarea · Checkbox · Radio · RadioGroup · SegmentedControl · Toggle · Dropdown · FilterBar · DatePicker · DateCalendar · FileInput · ImageCropper · OtpInput</td></tr>
108
- <tr><td><b>Display</b></td><td>Card · MediaCard · Hero · Avatar · Badge · Chip · ListItem · Table · Divider · Icon · Accordion</td></tr>
109
- <tr><td><b>Feedback</b></td><td>Alert · Toast · InlineAlert · Spinner · TopLoading · LinearProgress · Skeleton · EmptyState · ErrorState</td></tr>
110
- <tr><td><b>Navigation</b></td><td>Tabs · Sidebar · BottomNav · NavBar · Breadcrumb · Menu · Pagination</td></tr>
111
- <tr><td><b>Overlay</b></td><td>Modal · Drawer · Tooltip · Popover</td></tr>
112
- <tr><td><b>Layout</b></td><td>Container · Section · Stack · Grid</td></tr>
113
- <tr><td><b>System</b></td><td>ThemeProvider</td></tr>
114
+ <tr><td><b>General</b></td><td>Button · CopyButton · IconButton</td></tr>
115
+ <tr><td><b>Forms</b></td><td>Checkbox · Combobox · DateCalendar · DatePicker · DateRangePicker · Dropdown · Field · FileInput · FilterBar · Form · ImageCropper · OtpInput · Radio · RadioGroup · SegmentedControl · TagInput · Textarea · TextField · TimePicker · Toggle</td></tr>
116
+ <tr><td><b>Display</b></td><td>Accordion · Avatar · Badge · Card · Chip · DataView · DescriptionList · Divider · Hero · Icon · ListItem · MediaCard · Prose · Stat · Table · Timeline</td></tr>
117
+ <tr><td><b>Feedback</b></td><td>Alert (<code>useAlert</code> · <code>useConfirm</code>) · EmptyState · ErrorState · InlineAlert · LinearProgress · Skeleton · Spinner · Toast (<code>useToast</code>) · TopLoading</td></tr>
118
+ <tr><td><b>Navigation</b></td><td>BottomNav · Breadcrumb · Menu · NavBar · Pagination · Sidebar · Stepper · Tabs</td></tr>
119
+ <tr><td><b>Overlay</b></td><td>Drawer · Modal · Popover · Tooltip</td></tr>
120
+ <tr><td><b>Layout</b></td><td>AppShell · Container · Grid · PageHeader · Section · Stack</td></tr>
121
+ <tr><td><b>System</b></td><td>LocaleProvider · ThemeProvider</td></tr>
114
122
  </table>
115
123
 
116
124
  →&nbsp;Full API · [`docs/COMPONENTS.md`](./docs/COMPONENTS.md)
@@ -170,8 +178,9 @@ import "@bigtablet/design-system/style.css"; // defines the --bt-* values
170
178
  For server-rendered apps (Thymeleaf, JSP, PHP, Django):
171
179
 
172
180
  ```html
173
- <link rel="stylesheet" href="https://unpkg.com/@bigtablet/design-system/dist/vanilla/bigtablet.min.css">
174
- <script src="https://unpkg.com/@bigtablet/design-system/dist/vanilla/bigtablet.min.js"></script>
181
+ <!-- @4 tracks the latest 4.x. Pin an exact version like @4.9.1 to freeze rendering -->
182
+ <link rel="stylesheet" href="https://unpkg.com/@bigtablet/design-system@4/dist/vanilla/bigtablet.min.css">
183
+ <script src="https://unpkg.com/@bigtablet/design-system@4/dist/vanilla/bigtablet.min.js"></script>
175
184
 
176
185
  <button class="bt-button bt-button--md bt-button--filled">Filled</button>
177
186
  ```
@@ -184,13 +193,13 @@ For server-rendered apps (Thymeleaf, JSP, PHP, Django):
184
193
 
185
194
  ```bash
186
195
  pnpm install
187
- pnpm storybook # localhost:6006
196
+ pnpm site # docs site, localhost:6007
188
197
  pnpm test # Vitest unit
189
- pnpm test:storybook # a11y + Playwright
198
+ pnpm test:browser # a11y (axe on docs examples) + layout, Playwright
190
199
  pnpm build # tsup + SCSS copy
191
200
  ```
192
201
 
193
- The published Storybook lives at **[bigtablet.github.io/bigtablet-design-system](https://bigtablet.github.io/bigtablet-design-system)** and redeploys from `main`.
202
+ The docs site lives at **[bigtablet.github.io/bigtablet-design-system](https://bigtablet.github.io/bigtablet-design-system/)** and redeploys from `main`.
194
203
 
195
204
  <br />
196
205
 
@@ -198,8 +207,8 @@ The published Storybook lives at **[bigtablet.github.io/bigtablet-design-system]
198
207
 
199
208
  | | |
200
209
  |---|---|
201
- | 📚 [Components](./docs/COMPONENTS.md) | Props API + usage per component |
202
- | 🔄 [Migration](./docs/MIGRATION.md) | Deprecated prop migration guide |
210
+ | 📚 [Components](./docs/COMPONENTS.md) | When to use, examples, and props per component |
211
+ | 🔄 [Migration](./docs/MIGRATION.md) | Upgrade checklist + what to change per version |
203
212
  | 🎨 [Theming](./docs/THEMING.md) | Light/dark theme system guide |
204
213
  | 🏗️ [Architecture](./docs/ARCHITECTURE.md) | Project structure + design principles |
205
214
  | 🤝 [Contributing](./docs/CONTRIBUTING.md) | Dev setup + workflow |
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { Sentences, sentenceText } from "./text/index.js";
1
2
  export { cn, copyText, useClipboard, useFocusTrap, useReducedMotion } from "./utils/index.js";
2
3
  export { useListboxPopup } from "./utils/use-listbox-popup.js";
3
4
  export { Accordion } from "./ui/display/accordion/index.js";
@@ -1 +1 @@
1
- const baseColors={brandPrimary:"#121212",blue600:"#1A73E8",neutral0:"#FFFFFF",neutral50:"#F4F4F4",neutral100:"#F2F2F2",neutral200:"#E5E5E5",neutral300:"#999999",neutral400:"#B3B3B3",neutral500:"#888888",neutral600:"#777777",neutral700:"#666666",neutral800:"#333333",neutral900:"#121212",neutral925:"#141414",neutral950:"#0A0A0A",textCaptionLight:"#6F6F6F",textCaptionDark:"#808080",statusError:"#B91C1C",statusSuccess:"#047857",statusWarning:"#B45309",statusInfo:"#1D4ED8",statusErrorContainerLight:"#FEE2E2",statusSuccessContainerLight:"#DCFCE7",statusWarningContainerLight:"#FEF3C7",statusInfoContainerLight:"#DBEAFE",statusErrorContainerDark:"rgba(127, 29, 29, 0.35)",statusSuccessContainerDark:"rgba(6, 78, 59, 0.35)",statusWarningContainerDark:"rgba(120, 53, 15, 0.35)",statusInfoContainerDark:"rgba(30, 58, 138, 0.35)",statusErrorOnContainerDark:"#FCA5A5",statusSuccessOnContainerDark:"#86EFAC",statusWarningOnContainerDark:"#FCD34D",statusInfoOnContainerDark:"#93C5FD",statusErrorDarkText:"#F87171",statusSuccessDarkText:"#4ADE80",statusWarningDarkText:"#FBBF24",statusWarningGraphic:"#D97706",statusInfoDarkText:"#60A5FA",skeletonBase:"#F3F3F3",skeletonWave:"#F0F0F0",skeletonHighlight:"#FAFAFA",alphaBlack5:"rgba(0, 0, 0, 0.05)",alphaBlack8:"rgba(0, 0, 0, 0.08)",alphaBlack12:"rgba(26, 26, 26, 0.12)",alphaBlack38:"rgba(26, 26, 26, 0.38)",alphaBlack50:"rgba(0, 0, 0, 0.50)",alphaWhite5:"rgba(255, 255, 255, 0.05)",alphaWhite8:"rgba(255, 255, 255, 0.08)",alphaWhite12:"rgba(255, 255, 255, 0.12)",alphaWhite38:"rgba(255, 255, 255, 0.38)"};const colors={brand:{primary:"#121212",onPrimary:"#FFFFFF",primaryContainer:"rgba(0, 0, 0, 0.05)"},text:{heading:"#121212",body:"#666666",caption:"#6F6F6F",brand:"#121212",inverse:"#FFFFFF",disabled:"rgba(26, 26, 26, 0.38)"},bg:{solid:"#FFFFFF",solidDim:"#F4F4F4",additive:"rgba(0, 0, 0, 0.05)",disabled:"rgba(26, 26, 26, 0.12)",overlay:"rgba(0, 0, 0, 0.50)",inverseSurface:"#333333"},state:{hoverOnLight:"rgba(0, 0, 0, 0.05)",pressedOnLight:"rgba(26, 26, 26, 0.12)",focusOnLight:"rgba(0, 0, 0, 0.08)",hoverOnDark:"rgba(255, 255, 255, 0.05)",pressedOnDark:"rgba(255, 255, 255, 0.12)",focusOnDark:"rgba(255, 255, 255, 0.08)"},border:{default:"#E5E5E5",hover:"#B3B3B3",subtle:"rgba(0, 0, 0, 0.08)",focus:"#121212",disabled:"#F2F2F2"},status:{error:"#B91C1C",success:"#047857",warning:"#B45309",info:"#1D4ED8",errorOnDefault:"#FFFFFF",successOnDefault:"#FFFFFF",warningOnDefault:"#FFFFFF",infoOnDefault:"#FFFFFF",errorContainer:"#FEE2E2",successContainer:"#DCFCE7",warningContainer:"#FEF3C7",infoContainer:"#DBEAFE",errorOnContainer:"#B91C1C",successOnContainer:"#047857",warningOnContainer:"#B45309",infoOnContainer:"#1D4ED8",errorOnSurface:"#B91C1C",successOnSurface:"#047857",warningOnSurface:"#B45309",warningGraphic:"#D97706",infoOnSurface:"#1D4ED8"},accent:{subtle:"rgba(0, 0, 0, 0.05)",muted:"rgba(26, 26, 26, 0.12)",light:"#B3B3B3",default:"#121212",strong:"#121212",onSurface:"#FFFFFF"},skeleton:{base:"#F3F3F3",wave:"#F0F0F0",highlight:"#FAFAFA"}};export{baseColors,colors};
1
+ const baseColors={brandPrimary:"#121212",blue600:"#1A73E8",neutral0:"#FFFFFF",neutral50:"#F4F4F4",neutral100:"#F2F2F2",neutral200:"#E5E5E5",neutral300:"#999999",neutral400:"#B3B3B3",neutral500:"#888888",neutral600:"#777777",neutral700:"#666666",neutral800:"#333333",neutral900:"#121212",neutral925:"#141414",neutral950:"#0A0A0A",textCaptionLight:"#6F6F6F",textCaptionDark:"#808080",statusError:"#B91C1C",statusSuccess:"#047857",statusWarning:"#B45309",statusInfo:"#1D4ED8",statusErrorContainerLight:"#FEE2E2",statusSuccessContainerLight:"#DCFCE7",statusWarningContainerLight:"#FEF3C7",statusInfoContainerLight:"#DBEAFE",statusErrorContainerDark:"rgba(127, 29, 29, 0.35)",statusSuccessContainerDark:"rgba(6, 78, 59, 0.35)",statusWarningContainerDark:"rgba(120, 53, 15, 0.35)",statusInfoContainerDark:"rgba(30, 58, 138, 0.35)",statusErrorOnContainerDark:"#FCA5A5",statusSuccessOnContainerDark:"#86EFAC",statusWarningOnContainerDark:"#FCD34D",statusInfoOnContainerDark:"#93C5FD",statusErrorDarkText:"#F87171",statusSuccessDarkText:"#4ADE80",statusWarningDarkText:"#FBBF24",statusWarningGraphic:"#D97706",statusInfoDarkText:"#60A5FA",skeletonBase:"#E5E5E5",skeletonWave:"#E2E2E2",skeletonHighlight:"#F0F0F0",alphaBlack5:"rgba(0, 0, 0, 0.05)",alphaBlack8:"rgba(0, 0, 0, 0.08)",alphaBlack12:"rgba(26, 26, 26, 0.12)",alphaBlack38:"rgba(26, 26, 26, 0.38)",alphaBlack50:"rgba(0, 0, 0, 0.50)",alphaWhite5:"rgba(255, 255, 255, 0.05)",alphaWhite8:"rgba(255, 255, 255, 0.08)",alphaWhite12:"rgba(255, 255, 255, 0.12)",alphaWhite38:"rgba(255, 255, 255, 0.38)"};const colors={brand:{primary:"#121212",onPrimary:"#FFFFFF",primaryContainer:"rgba(0, 0, 0, 0.05)"},text:{heading:"#121212",body:"#666666",caption:"#6F6F6F",brand:"#121212",inverse:"#FFFFFF",disabled:"rgba(26, 26, 26, 0.38)"},bg:{solid:"#FFFFFF",solidDim:"#F4F4F4",additive:"rgba(0, 0, 0, 0.05)",disabled:"rgba(26, 26, 26, 0.12)",overlay:"rgba(0, 0, 0, 0.50)",inverseSurface:"#333333"},state:{hoverOnLight:"rgba(0, 0, 0, 0.05)",pressedOnLight:"rgba(26, 26, 26, 0.12)",focusOnLight:"rgba(0, 0, 0, 0.08)",hoverOnDark:"rgba(255, 255, 255, 0.05)",pressedOnDark:"rgba(255, 255, 255, 0.12)",focusOnDark:"rgba(255, 255, 255, 0.08)"},border:{default:"#E5E5E5",hover:"#B3B3B3",subtle:"rgba(0, 0, 0, 0.08)",focus:"#121212",disabled:"#F2F2F2"},status:{error:"#B91C1C",success:"#047857",warning:"#B45309",info:"#1D4ED8",errorOnDefault:"#FFFFFF",successOnDefault:"#FFFFFF",warningOnDefault:"#FFFFFF",infoOnDefault:"#FFFFFF",errorContainer:"#FEE2E2",successContainer:"#DCFCE7",warningContainer:"#FEF3C7",infoContainer:"#DBEAFE",errorOnContainer:"#B91C1C",successOnContainer:"#047857",warningOnContainer:"#B45309",infoOnContainer:"#1D4ED8",errorOnSurface:"#B91C1C",successOnSurface:"#047857",warningOnSurface:"#B45309",warningGraphic:"#D97706",infoOnSurface:"#1D4ED8"},accent:{subtle:"rgba(0, 0, 0, 0.05)",muted:"rgba(26, 26, 26, 0.12)",light:"#B3B3B3",default:"#121212",strong:"#121212",onSurface:"#FFFFFF"},skeleton:{base:"#E5E5E5",wave:"#E2E2E2",highlight:"#F0F0F0"}};export{baseColors,colors};
@@ -1 +1 @@
1
- const skeleton={color:{base:"#F3F3F3",wave:"#F0F0F0",highlight:"#FAFAFA"},gradient:"linear-gradient(90deg, #F3F3F3 25%, #FAFAFA 37%, #F0F0F0 63%)",radius:{sm:"6px",md:"8px",lg:"12px"},height:{xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem"},animation:{duration:"1.4s",timing:"ease-in-out"}};export{skeleton};
1
+ const skeleton={color:{base:"#E5E5E5",wave:"#E2E2E2",highlight:"#F0F0F0"},gradient:"linear-gradient(90deg, #E5E5E5 25%, #F0F0F0 37%, #E2E2E2 63%)",radius:{sm:"6px",md:"8px",lg:"12px"},height:{xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem"},animation:{duration:"1.4s",timing:"ease-in-out"}};export{skeleton};
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- :root{--bt-elevation-level1: 0 1px 1px -1px rgba(0, 0, 0, 0.20), 0 3px 3px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level2: 0 2px 2px -2px rgba(0, 0, 0, 0.20), 0 6px 6px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level3: 0 3px 3px -3px rgba(0, 0, 0, 0.20), 0 9px 9px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level4: 0 5px 5px -5px rgba(0, 0, 0, 0.20), 0 15px 15px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level5: 0 8px 10px -5px rgba(0, 0, 0, 0.20), 0 20px 20px 0px rgba(0, 0, 0, 0.12);--bt-color-brand-primary: #121212;--bt-color-brand-on-primary: #FFFFFF;--bt-color-brand-primary-container: rgba(0, 0, 0, 0.05);--bt-color-text-heading: #121212;--bt-color-text-body: #666666;--bt-color-text-caption: #6F6F6F;--bt-color-text-brand: #121212;--bt-color-text-inverse: #FFFFFF;--bt-color-text-disabled: rgba(26, 26, 26, 0.38);--bt-color-bg-solid: #FFFFFF;--bt-color-bg-solid-dim: #F4F4F4;--bt-color-bg-additive: rgba(0, 0, 0, 0.05);--bt-color-bg-disabled: rgba(26, 26, 26, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.50);--bt-color-bg-inverse-surface: #333333;--bt-color-state-hover-on-light: rgba(0, 0, 0, 0.05);--bt-color-state-pressed-on-light: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-light: rgba(0, 0, 0, 0.08);--bt-color-state-hover-on-dark: rgba(255, 255, 255, 0.05);--bt-color-state-pressed-on-dark: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-dark: rgba(255, 255, 255, 0.08);--bt-color-border-default: #E5E5E5;--bt-color-border-hover: #B3B3B3;--bt-color-border-subtle: rgba(0, 0, 0, 0.08);--bt-color-border-focus: #121212;--bt-color-border-disabled: #F2F2F2;--bt-color-status-error: #B91C1C;--bt-color-status-success: #047857;--bt-color-status-warning: #B45309;--bt-color-status-info: #1D4ED8;--bt-color-status-error-on-default: #FFFFFF;--bt-color-status-success-on-default: #FFFFFF;--bt-color-status-warning-on-default: #FFFFFF;--bt-color-status-info-on-default: #FFFFFF;--bt-color-status-error-container: #FEE2E2;--bt-color-status-success-container: #DCFCE7;--bt-color-status-warning-container: #FEF3C7;--bt-color-status-info-container: #DBEAFE;--bt-color-status-error-on-container: #B91C1C;--bt-color-status-success-on-container: #047857;--bt-color-status-warning-on-container: #B45309;--bt-color-status-info-on-container: #1D4ED8;--bt-color-status-error-on-surface: #B91C1C;--bt-color-status-success-on-surface: #047857;--bt-color-status-warning-on-surface: #B45309;--bt-color-status-warning-graphic: #D97706;--bt-color-status-info-on-surface: #1D4ED8;--bt-color-accent-subtle: rgba(0, 0, 0, 0.05);--bt-color-accent-muted: rgba(26, 26, 26, 0.12);--bt-color-accent-light: #B3B3B3;--bt-color-accent-default: #121212;--bt-color-accent-strong: #121212;--bt-color-accent-on-surface: #FFFFFF;--bt-color-skeleton-base: #F3F3F3;--bt-color-skeleton-wave: #F0F0F0;--bt-color-skeleton-highlight: #FAFAFA;--bt-spacing-0: 0px;--bt-spacing-1: 1px;--bt-spacing-2: 2px;--bt-spacing-3: 3px;--bt-spacing-4: 4px;--bt-spacing-6: 6px;--bt-spacing-8: 8px;--bt-spacing-10: 10px;--bt-spacing-12: 12px;--bt-spacing-16: 16px;--bt-spacing-20: 20px;--bt-spacing-24: 24px;--bt-spacing-32: 32px;--bt-spacing-40: 40px;--bt-spacing-48: 48px;--bt-spacing-64: 64px;--bt-spacing-96: 96px;--bt-spacing-128: 128px;--bt-radius-none: 0px;--bt-radius-xs: 4px;--bt-radius-sm: 6px;--bt-radius-md: 8px;--bt-radius-lg: 12px;--bt-radius-xl: 16px;--bt-radius-full: 9999px;--bt-font-family: "Pretendard", sans-serif;--bt-z-content: 10;--bt-z-chrome: 100;--bt-z-notification: 200;--bt-z-loading: 500;--bt-z-popup: 1000;--bt-z-app-chrome: 150;--bt-focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #121212;--bt-focus-ring-error: 0 0 0 2px #FFFFFF, 0 0 0 4px #B91C1C;--bt-focus-ring-success: 0 0 0 2px #FFFFFF, 0 0 0 4px #047857;--bt-bottom-nav-inset: 0px;--bt-sidebar-inset: 0px;--bt-bottom-inset-app: 0px}body{--bt-bottom-inset: calc( var(--bt-bottom-nav-inset, 0px) + var(--bt-sidebar-inset, 0px) + var(--bt-bottom-inset-app, 0px) )}html{scroll-padding-top:var(--bt-top-inset, 0px)}@media(forced-colors: active){:focus-visible{outline:2px solid Highlight !important;outline-offset:2px}}:root{--bt-scrollbar-width: 0px}[data-theme=dark]{color-scheme:dark;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bt-elevation-level1: 0 1px 2px 0px rgba(0, 0, 0, 0.45), 0 3px 6px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level2: 0 2px 4px 0px rgba(0, 0, 0, 0.45), 0 6px 12px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level3: 0 3px 6px 0px rgba(0, 0, 0, 0.50), 0 9px 18px 0px rgba(0, 0, 0, 0.35);--bt-elevation-level4: 0 5px 10px 0px rgba(0, 0, 0, 0.55), 0 15px 30px 0px rgba(0, 0, 0, 0.40);--bt-elevation-level5: 0 8px 16px 0px rgba(0, 0, 0, 0.60), 0 20px 40px 0px rgba(0, 0, 0, 0.45);--bt-color-brand-primary-container: rgba(255, 255, 255, 0.08);--bt-color-text-heading: rgba(255, 255, 255, 0.95);--bt-color-text-body: #B3B3B3;--bt-color-text-caption: #808080;--bt-color-text-inverse: #121212;--bt-color-text-disabled: rgba(255, 255, 255, 0.38);--bt-color-bg-solid: #0A0A0A;--bt-color-bg-solid-dim: #141414;--bt-color-bg-additive: rgba(255, 255, 255, 0.05);--bt-color-bg-disabled: rgba(255, 255, 255, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.7);--bt-color-bg-inverse-surface: #F4F4F4;--bt-color-state-hover-on-light: rgba(255, 255, 255, 0.08);--bt-color-state-pressed-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-hover-on-dark: rgba(0, 0, 0, 0.08);--bt-color-state-pressed-on-dark: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-dark: rgba(26, 26, 26, 0.12);--bt-color-border-default: #333333;--bt-color-border-hover: #777777;--bt-color-border-subtle: rgba(255, 255, 255, 0.12);--bt-color-border-focus: #FFFFFF;--bt-color-border-disabled: #141414;--bt-color-status-error-container: rgba(127, 29, 29, 0.35);--bt-color-status-success-container: rgba(6, 78, 59, 0.35);--bt-color-status-warning-container: rgba(120, 53, 15, 0.35);--bt-color-status-info-container: rgba(30, 58, 138, 0.35);--bt-color-status-error-on-container: #FCA5A5;--bt-color-status-success-on-container: #86EFAC;--bt-color-status-warning-on-container: #FCD34D;--bt-color-status-info-on-container: #93C5FD;--bt-color-status-error-on-surface: #F87171;--bt-color-status-success-on-surface: #4ADE80;--bt-color-status-warning-on-surface: #FBBF24;--bt-color-status-warning-graphic: #FBBF24;--bt-color-status-info-on-surface: #60A5FA;--bt-color-accent-subtle: rgba(255, 255, 255, 0.08);--bt-color-accent-muted: rgba(255, 255, 255, 0.12);--bt-color-accent-light: #999999;--bt-color-accent-default: #FFFFFF;--bt-color-accent-strong: #FFFFFF;--bt-color-accent-on-surface: #121212;--bt-color-skeleton-base: #333333;--bt-color-skeleton-wave: #333333;--bt-color-skeleton-highlight: #666666;--bt-focus-ring: 0 0 0 2px #0A0A0A, 0 0 0 4px #FFFFFF;--bt-focus-ring-error: 0 0 0 2px #0A0A0A, 0 0 0 4px #F87171;--bt-focus-ring-success: 0 0 0 2px #0A0A0A, 0 0 0 4px #4ADE80}[data-theme=light]{--bt-elevation-level1: 0 1px 1px -1px rgba(0, 0, 0, 0.20), 0 3px 3px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level2: 0 2px 2px -2px rgba(0, 0, 0, 0.20), 0 6px 6px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level3: 0 3px 3px -3px rgba(0, 0, 0, 0.20), 0 9px 9px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level4: 0 5px 5px -5px rgba(0, 0, 0, 0.20), 0 15px 15px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level5: 0 8px 10px -5px rgba(0, 0, 0, 0.20), 0 20px 20px 0px rgba(0, 0, 0, 0.12);--bt-color-brand-primary: #121212;--bt-color-brand-on-primary: #FFFFFF;--bt-color-brand-primary-container: rgba(0, 0, 0, 0.05);--bt-color-text-heading: #121212;--bt-color-text-body: #666666;--bt-color-text-caption: #6F6F6F;--bt-color-text-brand: #121212;--bt-color-text-inverse: #FFFFFF;--bt-color-text-disabled: rgba(26, 26, 26, 0.38);--bt-color-bg-solid: #FFFFFF;--bt-color-bg-solid-dim: #F4F4F4;--bt-color-bg-additive: rgba(0, 0, 0, 0.05);--bt-color-bg-disabled: rgba(26, 26, 26, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.50);--bt-color-bg-inverse-surface: #333333;--bt-color-state-hover-on-light: rgba(0, 0, 0, 0.05);--bt-color-state-pressed-on-light: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-light: rgba(0, 0, 0, 0.08);--bt-color-state-hover-on-dark: rgba(255, 255, 255, 0.05);--bt-color-state-pressed-on-dark: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-dark: rgba(255, 255, 255, 0.08);--bt-color-border-default: #E5E5E5;--bt-color-border-hover: #B3B3B3;--bt-color-border-subtle: rgba(0, 0, 0, 0.08);--bt-color-border-focus: #121212;--bt-color-border-disabled: #F2F2F2;--bt-color-status-error: #B91C1C;--bt-color-status-success: #047857;--bt-color-status-warning: #B45309;--bt-color-status-info: #1D4ED8;--bt-color-status-error-on-default: #FFFFFF;--bt-color-status-success-on-default: #FFFFFF;--bt-color-status-warning-on-default: #FFFFFF;--bt-color-status-info-on-default: #FFFFFF;--bt-color-status-error-container: #FEE2E2;--bt-color-status-success-container: #DCFCE7;--bt-color-status-warning-container: #FEF3C7;--bt-color-status-info-container: #DBEAFE;--bt-color-status-error-on-container: #B91C1C;--bt-color-status-success-on-container: #047857;--bt-color-status-warning-on-container: #B45309;--bt-color-status-info-on-container: #1D4ED8;--bt-color-status-error-on-surface: #B91C1C;--bt-color-status-success-on-surface: #047857;--bt-color-status-warning-on-surface: #B45309;--bt-color-status-warning-graphic: #D97706;--bt-color-status-info-on-surface: #1D4ED8;--bt-color-accent-subtle: rgba(0, 0, 0, 0.05);--bt-color-accent-muted: rgba(26, 26, 26, 0.12);--bt-color-accent-light: #B3B3B3;--bt-color-accent-default: #121212;--bt-color-accent-strong: #121212;--bt-color-accent-on-surface: #FFFFFF;--bt-color-skeleton-base: #F3F3F3;--bt-color-skeleton-wave: #F0F0F0;--bt-color-skeleton-highlight: #FAFAFA;--bt-spacing-0: 0px;--bt-spacing-1: 1px;--bt-spacing-2: 2px;--bt-spacing-3: 3px;--bt-spacing-4: 4px;--bt-spacing-6: 6px;--bt-spacing-8: 8px;--bt-spacing-10: 10px;--bt-spacing-12: 12px;--bt-spacing-16: 16px;--bt-spacing-20: 20px;--bt-spacing-24: 24px;--bt-spacing-32: 32px;--bt-spacing-40: 40px;--bt-spacing-48: 48px;--bt-spacing-64: 64px;--bt-spacing-96: 96px;--bt-spacing-128: 128px;--bt-radius-none: 0px;--bt-radius-xs: 4px;--bt-radius-sm: 6px;--bt-radius-md: 8px;--bt-radius-lg: 12px;--bt-radius-xl: 16px;--bt-radius-full: 9999px;--bt-font-family: "Pretendard", sans-serif;--bt-z-content: 10;--bt-z-chrome: 100;--bt-z-notification: 200;--bt-z-loading: 500;--bt-z-popup: 1000;--bt-z-app-chrome: 150;--bt-focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #121212;--bt-focus-ring-error: 0 0 0 2px #FFFFFF, 0 0 0 4px #B91C1C;--bt-focus-ring-success: 0 0 0 2px #FFFFFF, 0 0 0 4px #047857}@media(prefers-color-scheme: dark){:root:not([data-theme]){color-scheme:dark;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bt-elevation-level1: 0 1px 2px 0px rgba(0, 0, 0, 0.45), 0 3px 6px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level2: 0 2px 4px 0px rgba(0, 0, 0, 0.45), 0 6px 12px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level3: 0 3px 6px 0px rgba(0, 0, 0, 0.50), 0 9px 18px 0px rgba(0, 0, 0, 0.35);--bt-elevation-level4: 0 5px 10px 0px rgba(0, 0, 0, 0.55), 0 15px 30px 0px rgba(0, 0, 0, 0.40);--bt-elevation-level5: 0 8px 16px 0px rgba(0, 0, 0, 0.60), 0 20px 40px 0px rgba(0, 0, 0, 0.45);--bt-color-brand-primary-container: rgba(255, 255, 255, 0.08);--bt-color-text-heading: rgba(255, 255, 255, 0.95);--bt-color-text-body: #B3B3B3;--bt-color-text-caption: #808080;--bt-color-text-inverse: #121212;--bt-color-text-disabled: rgba(255, 255, 255, 0.38);--bt-color-bg-solid: #0A0A0A;--bt-color-bg-solid-dim: #141414;--bt-color-bg-additive: rgba(255, 255, 255, 0.05);--bt-color-bg-disabled: rgba(255, 255, 255, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.7);--bt-color-bg-inverse-surface: #F4F4F4;--bt-color-state-hover-on-light: rgba(255, 255, 255, 0.08);--bt-color-state-pressed-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-hover-on-dark: rgba(0, 0, 0, 0.08);--bt-color-state-pressed-on-dark: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-dark: rgba(26, 26, 26, 0.12);--bt-color-border-default: #333333;--bt-color-border-hover: #777777;--bt-color-border-subtle: rgba(255, 255, 255, 0.12);--bt-color-border-focus: #FFFFFF;--bt-color-border-disabled: #141414;--bt-color-status-error-container: rgba(127, 29, 29, 0.35);--bt-color-status-success-container: rgba(6, 78, 59, 0.35);--bt-color-status-warning-container: rgba(120, 53, 15, 0.35);--bt-color-status-info-container: rgba(30, 58, 138, 0.35);--bt-color-status-error-on-container: #FCA5A5;--bt-color-status-success-on-container: #86EFAC;--bt-color-status-warning-on-container: #FCD34D;--bt-color-status-info-on-container: #93C5FD;--bt-color-status-error-on-surface: #F87171;--bt-color-status-success-on-surface: #4ADE80;--bt-color-status-warning-on-surface: #FBBF24;--bt-color-status-warning-graphic: #FBBF24;--bt-color-status-info-on-surface: #60A5FA;--bt-color-accent-subtle: rgba(255, 255, 255, 0.08);--bt-color-accent-muted: rgba(255, 255, 255, 0.12);--bt-color-accent-light: #999999;--bt-color-accent-default: #FFFFFF;--bt-color-accent-strong: #FFFFFF;--bt-color-accent-on-surface: #121212;--bt-color-skeleton-base: #333333;--bt-color-skeleton-wave: #333333;--bt-color-skeleton-highlight: #666666;--bt-focus-ring: 0 0 0 2px #0A0A0A, 0 0 0 4px #FFFFFF;--bt-focus-ring-error: 0 0 0 2px #0A0A0A, 0 0 0 4px #F87171;--bt-focus-ring-success: 0 0 0 2px #0A0A0A, 0 0 0 4px #4ADE80}}@keyframes skeleton_loading{0%{background-position:100% 0}100%{background-position:0 0}}}
4
+ :root{--bt-elevation-level1: 0 1px 1px -1px rgba(0, 0, 0, 0.20), 0 3px 3px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level2: 0 2px 2px -2px rgba(0, 0, 0, 0.20), 0 6px 6px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level3: 0 3px 3px -3px rgba(0, 0, 0, 0.20), 0 9px 9px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level4: 0 5px 5px -5px rgba(0, 0, 0, 0.20), 0 15px 15px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level5: 0 8px 10px -5px rgba(0, 0, 0, 0.20), 0 20px 20px 0px rgba(0, 0, 0, 0.12);--bt-color-brand-primary: #121212;--bt-color-brand-on-primary: #FFFFFF;--bt-color-brand-primary-container: rgba(0, 0, 0, 0.05);--bt-color-text-heading: #121212;--bt-color-text-body: #666666;--bt-color-text-caption: #6F6F6F;--bt-color-text-brand: #121212;--bt-color-text-inverse: #FFFFFF;--bt-color-text-disabled: rgba(26, 26, 26, 0.38);--bt-color-bg-solid: #FFFFFF;--bt-color-bg-solid-dim: #F4F4F4;--bt-color-bg-additive: rgba(0, 0, 0, 0.05);--bt-color-bg-disabled: rgba(26, 26, 26, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.50);--bt-color-bg-inverse-surface: #333333;--bt-color-state-hover-on-light: rgba(0, 0, 0, 0.05);--bt-color-state-pressed-on-light: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-light: rgba(0, 0, 0, 0.08);--bt-color-state-hover-on-dark: rgba(255, 255, 255, 0.05);--bt-color-state-pressed-on-dark: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-dark: rgba(255, 255, 255, 0.08);--bt-color-border-default: #E5E5E5;--bt-color-border-hover: #B3B3B3;--bt-color-border-subtle: rgba(0, 0, 0, 0.08);--bt-color-border-focus: #121212;--bt-color-border-disabled: #F2F2F2;--bt-color-status-error: #B91C1C;--bt-color-status-success: #047857;--bt-color-status-warning: #B45309;--bt-color-status-info: #1D4ED8;--bt-color-status-error-on-default: #FFFFFF;--bt-color-status-success-on-default: #FFFFFF;--bt-color-status-warning-on-default: #FFFFFF;--bt-color-status-info-on-default: #FFFFFF;--bt-color-status-error-container: #FEE2E2;--bt-color-status-success-container: #DCFCE7;--bt-color-status-warning-container: #FEF3C7;--bt-color-status-info-container: #DBEAFE;--bt-color-status-error-on-container: #B91C1C;--bt-color-status-success-on-container: #047857;--bt-color-status-warning-on-container: #B45309;--bt-color-status-info-on-container: #1D4ED8;--bt-color-status-error-on-surface: #B91C1C;--bt-color-status-success-on-surface: #047857;--bt-color-status-warning-on-surface: #B45309;--bt-color-status-warning-graphic: #D97706;--bt-color-status-info-on-surface: #1D4ED8;--bt-color-accent-subtle: rgba(0, 0, 0, 0.05);--bt-color-accent-muted: rgba(26, 26, 26, 0.12);--bt-color-accent-light: #B3B3B3;--bt-color-accent-default: #121212;--bt-color-accent-strong: #121212;--bt-color-accent-on-surface: #FFFFFF;--bt-color-skeleton-base: #E5E5E5;--bt-color-skeleton-wave: #E2E2E2;--bt-color-skeleton-highlight: #F0F0F0;--bt-spacing-0: 0px;--bt-spacing-1: 1px;--bt-spacing-2: 2px;--bt-spacing-3: 3px;--bt-spacing-4: 4px;--bt-spacing-6: 6px;--bt-spacing-8: 8px;--bt-spacing-10: 10px;--bt-spacing-12: 12px;--bt-spacing-16: 16px;--bt-spacing-20: 20px;--bt-spacing-24: 24px;--bt-spacing-32: 32px;--bt-spacing-40: 40px;--bt-spacing-48: 48px;--bt-spacing-64: 64px;--bt-spacing-96: 96px;--bt-spacing-128: 128px;--bt-radius-none: 0px;--bt-radius-xs: 4px;--bt-radius-sm: 6px;--bt-radius-md: 8px;--bt-radius-lg: 12px;--bt-radius-xl: 16px;--bt-radius-full: 9999px;--bt-font-family: "Pretendard", sans-serif;--bt-z-content: 10;--bt-z-chrome: 100;--bt-z-notification: 200;--bt-z-loading: 500;--bt-z-popup: 1000;--bt-z-app-chrome: 150;--bt-focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #121212;--bt-focus-ring-error: 0 0 0 2px #FFFFFF, 0 0 0 4px #B91C1C;--bt-focus-ring-success: 0 0 0 2px #FFFFFF, 0 0 0 4px #047857;--bt-bottom-nav-inset: 0px;--bt-sidebar-inset: 0px;--bt-bottom-inset-app: 0px}body{--bt-bottom-inset: calc( var(--bt-bottom-nav-inset, 0px) + var(--bt-sidebar-inset, 0px) + var(--bt-bottom-inset-app, 0px) )}html{scroll-padding-top:var(--bt-top-inset, 0px)}@media(forced-colors: active){:focus-visible{outline:2px solid Highlight !important;outline-offset:2px}}:root{--bt-scrollbar-width: 0px}[data-theme=dark]{color-scheme:dark;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bt-elevation-level1: 0 1px 2px 0px rgba(0, 0, 0, 0.45), 0 3px 6px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level2: 0 2px 4px 0px rgba(0, 0, 0, 0.45), 0 6px 12px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level3: 0 3px 6px 0px rgba(0, 0, 0, 0.50), 0 9px 18px 0px rgba(0, 0, 0, 0.35);--bt-elevation-level4: 0 5px 10px 0px rgba(0, 0, 0, 0.55), 0 15px 30px 0px rgba(0, 0, 0, 0.40);--bt-elevation-level5: 0 8px 16px 0px rgba(0, 0, 0, 0.60), 0 20px 40px 0px rgba(0, 0, 0, 0.45);--bt-color-brand-primary-container: rgba(255, 255, 255, 0.08);--bt-color-text-heading: rgba(255, 255, 255, 0.95);--bt-color-text-body: #B3B3B3;--bt-color-text-caption: #808080;--bt-color-text-inverse: #121212;--bt-color-text-disabled: rgba(255, 255, 255, 0.38);--bt-color-bg-solid: #0A0A0A;--bt-color-bg-solid-dim: #141414;--bt-color-bg-additive: rgba(255, 255, 255, 0.05);--bt-color-bg-disabled: rgba(255, 255, 255, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.7);--bt-color-bg-inverse-surface: #F4F4F4;--bt-color-state-hover-on-light: rgba(255, 255, 255, 0.08);--bt-color-state-pressed-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-hover-on-dark: rgba(0, 0, 0, 0.08);--bt-color-state-pressed-on-dark: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-dark: rgba(26, 26, 26, 0.12);--bt-color-border-default: #333333;--bt-color-border-hover: #777777;--bt-color-border-subtle: rgba(255, 255, 255, 0.12);--bt-color-border-focus: #FFFFFF;--bt-color-border-disabled: #141414;--bt-color-status-error-container: rgba(127, 29, 29, 0.35);--bt-color-status-success-container: rgba(6, 78, 59, 0.35);--bt-color-status-warning-container: rgba(120, 53, 15, 0.35);--bt-color-status-info-container: rgba(30, 58, 138, 0.35);--bt-color-status-error-on-container: #FCA5A5;--bt-color-status-success-on-container: #86EFAC;--bt-color-status-warning-on-container: #FCD34D;--bt-color-status-info-on-container: #93C5FD;--bt-color-status-error-on-surface: #F87171;--bt-color-status-success-on-surface: #4ADE80;--bt-color-status-warning-on-surface: #FBBF24;--bt-color-status-warning-graphic: #FBBF24;--bt-color-status-info-on-surface: #60A5FA;--bt-color-accent-subtle: rgba(255, 255, 255, 0.08);--bt-color-accent-muted: rgba(255, 255, 255, 0.12);--bt-color-accent-light: #999999;--bt-color-accent-default: #FFFFFF;--bt-color-accent-strong: #FFFFFF;--bt-color-accent-on-surface: #121212;--bt-color-skeleton-base: #333333;--bt-color-skeleton-wave: #333333;--bt-color-skeleton-highlight: #666666;--bt-focus-ring: 0 0 0 2px #0A0A0A, 0 0 0 4px #FFFFFF;--bt-focus-ring-error: 0 0 0 2px #0A0A0A, 0 0 0 4px #F87171;--bt-focus-ring-success: 0 0 0 2px #0A0A0A, 0 0 0 4px #4ADE80}[data-theme=light]{--bt-elevation-level1: 0 1px 1px -1px rgba(0, 0, 0, 0.20), 0 3px 3px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level2: 0 2px 2px -2px rgba(0, 0, 0, 0.20), 0 6px 6px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level3: 0 3px 3px -3px rgba(0, 0, 0, 0.20), 0 9px 9px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level4: 0 5px 5px -5px rgba(0, 0, 0, 0.20), 0 15px 15px 0px rgba(0, 0, 0, 0.12);--bt-elevation-level5: 0 8px 10px -5px rgba(0, 0, 0, 0.20), 0 20px 20px 0px rgba(0, 0, 0, 0.12);--bt-color-brand-primary: #121212;--bt-color-brand-on-primary: #FFFFFF;--bt-color-brand-primary-container: rgba(0, 0, 0, 0.05);--bt-color-text-heading: #121212;--bt-color-text-body: #666666;--bt-color-text-caption: #6F6F6F;--bt-color-text-brand: #121212;--bt-color-text-inverse: #FFFFFF;--bt-color-text-disabled: rgba(26, 26, 26, 0.38);--bt-color-bg-solid: #FFFFFF;--bt-color-bg-solid-dim: #F4F4F4;--bt-color-bg-additive: rgba(0, 0, 0, 0.05);--bt-color-bg-disabled: rgba(26, 26, 26, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.50);--bt-color-bg-inverse-surface: #333333;--bt-color-state-hover-on-light: rgba(0, 0, 0, 0.05);--bt-color-state-pressed-on-light: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-light: rgba(0, 0, 0, 0.08);--bt-color-state-hover-on-dark: rgba(255, 255, 255, 0.05);--bt-color-state-pressed-on-dark: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-dark: rgba(255, 255, 255, 0.08);--bt-color-border-default: #E5E5E5;--bt-color-border-hover: #B3B3B3;--bt-color-border-subtle: rgba(0, 0, 0, 0.08);--bt-color-border-focus: #121212;--bt-color-border-disabled: #F2F2F2;--bt-color-status-error: #B91C1C;--bt-color-status-success: #047857;--bt-color-status-warning: #B45309;--bt-color-status-info: #1D4ED8;--bt-color-status-error-on-default: #FFFFFF;--bt-color-status-success-on-default: #FFFFFF;--bt-color-status-warning-on-default: #FFFFFF;--bt-color-status-info-on-default: #FFFFFF;--bt-color-status-error-container: #FEE2E2;--bt-color-status-success-container: #DCFCE7;--bt-color-status-warning-container: #FEF3C7;--bt-color-status-info-container: #DBEAFE;--bt-color-status-error-on-container: #B91C1C;--bt-color-status-success-on-container: #047857;--bt-color-status-warning-on-container: #B45309;--bt-color-status-info-on-container: #1D4ED8;--bt-color-status-error-on-surface: #B91C1C;--bt-color-status-success-on-surface: #047857;--bt-color-status-warning-on-surface: #B45309;--bt-color-status-warning-graphic: #D97706;--bt-color-status-info-on-surface: #1D4ED8;--bt-color-accent-subtle: rgba(0, 0, 0, 0.05);--bt-color-accent-muted: rgba(26, 26, 26, 0.12);--bt-color-accent-light: #B3B3B3;--bt-color-accent-default: #121212;--bt-color-accent-strong: #121212;--bt-color-accent-on-surface: #FFFFFF;--bt-color-skeleton-base: #E5E5E5;--bt-color-skeleton-wave: #E2E2E2;--bt-color-skeleton-highlight: #F0F0F0;--bt-spacing-0: 0px;--bt-spacing-1: 1px;--bt-spacing-2: 2px;--bt-spacing-3: 3px;--bt-spacing-4: 4px;--bt-spacing-6: 6px;--bt-spacing-8: 8px;--bt-spacing-10: 10px;--bt-spacing-12: 12px;--bt-spacing-16: 16px;--bt-spacing-20: 20px;--bt-spacing-24: 24px;--bt-spacing-32: 32px;--bt-spacing-40: 40px;--bt-spacing-48: 48px;--bt-spacing-64: 64px;--bt-spacing-96: 96px;--bt-spacing-128: 128px;--bt-radius-none: 0px;--bt-radius-xs: 4px;--bt-radius-sm: 6px;--bt-radius-md: 8px;--bt-radius-lg: 12px;--bt-radius-xl: 16px;--bt-radius-full: 9999px;--bt-font-family: "Pretendard", sans-serif;--bt-z-content: 10;--bt-z-chrome: 100;--bt-z-notification: 200;--bt-z-loading: 500;--bt-z-popup: 1000;--bt-z-app-chrome: 150;--bt-focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #121212;--bt-focus-ring-error: 0 0 0 2px #FFFFFF, 0 0 0 4px #B91C1C;--bt-focus-ring-success: 0 0 0 2px #FFFFFF, 0 0 0 4px #047857}@media(prefers-color-scheme: dark){:root:not([data-theme]){color-scheme:dark;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bt-elevation-level1: 0 1px 2px 0px rgba(0, 0, 0, 0.45), 0 3px 6px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level2: 0 2px 4px 0px rgba(0, 0, 0, 0.45), 0 6px 12px 0px rgba(0, 0, 0, 0.30);--bt-elevation-level3: 0 3px 6px 0px rgba(0, 0, 0, 0.50), 0 9px 18px 0px rgba(0, 0, 0, 0.35);--bt-elevation-level4: 0 5px 10px 0px rgba(0, 0, 0, 0.55), 0 15px 30px 0px rgba(0, 0, 0, 0.40);--bt-elevation-level5: 0 8px 16px 0px rgba(0, 0, 0, 0.60), 0 20px 40px 0px rgba(0, 0, 0, 0.45);--bt-color-brand-primary-container: rgba(255, 255, 255, 0.08);--bt-color-text-heading: rgba(255, 255, 255, 0.95);--bt-color-text-body: #B3B3B3;--bt-color-text-caption: #808080;--bt-color-text-inverse: #121212;--bt-color-text-disabled: rgba(255, 255, 255, 0.38);--bt-color-bg-solid: #0A0A0A;--bt-color-bg-solid-dim: #141414;--bt-color-bg-additive: rgba(255, 255, 255, 0.05);--bt-color-bg-disabled: rgba(255, 255, 255, 0.12);--bt-color-bg-overlay: rgba(0, 0, 0, 0.7);--bt-color-bg-inverse-surface: #F4F4F4;--bt-color-state-hover-on-light: rgba(255, 255, 255, 0.08);--bt-color-state-pressed-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-focus-on-light: rgba(255, 255, 255, 0.12);--bt-color-state-hover-on-dark: rgba(0, 0, 0, 0.08);--bt-color-state-pressed-on-dark: rgba(26, 26, 26, 0.12);--bt-color-state-focus-on-dark: rgba(26, 26, 26, 0.12);--bt-color-border-default: #333333;--bt-color-border-hover: #777777;--bt-color-border-subtle: rgba(255, 255, 255, 0.12);--bt-color-border-focus: #FFFFFF;--bt-color-border-disabled: #141414;--bt-color-status-error-container: rgba(127, 29, 29, 0.35);--bt-color-status-success-container: rgba(6, 78, 59, 0.35);--bt-color-status-warning-container: rgba(120, 53, 15, 0.35);--bt-color-status-info-container: rgba(30, 58, 138, 0.35);--bt-color-status-error-on-container: #FCA5A5;--bt-color-status-success-on-container: #86EFAC;--bt-color-status-warning-on-container: #FCD34D;--bt-color-status-info-on-container: #93C5FD;--bt-color-status-error-on-surface: #F87171;--bt-color-status-success-on-surface: #4ADE80;--bt-color-status-warning-on-surface: #FBBF24;--bt-color-status-warning-graphic: #FBBF24;--bt-color-status-info-on-surface: #60A5FA;--bt-color-accent-subtle: rgba(255, 255, 255, 0.08);--bt-color-accent-muted: rgba(255, 255, 255, 0.12);--bt-color-accent-light: #999999;--bt-color-accent-default: #FFFFFF;--bt-color-accent-strong: #FFFFFF;--bt-color-accent-on-surface: #121212;--bt-color-skeleton-base: #333333;--bt-color-skeleton-wave: #333333;--bt-color-skeleton-highlight: #666666;--bt-focus-ring: 0 0 0 2px #0A0A0A, 0 0 0 4px #FFFFFF;--bt-focus-ring-error: 0 0 0 2px #0A0A0A, 0 0 0 4px #F87171;--bt-focus-ring-success: 0 0 0 2px #0A0A0A, 0 0 0 4px #4ADE80}}@keyframes skeleton_loading{0%{background-position:100% 0}100%{background-position:0 0}}}
@@ -0,0 +1 @@
1
+ import "../styles/theme.css";import "../styles/autofill.css";import "../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import*as React from"react";import{chooseDomBreaks,contentWidth,fontPending,ID_ATTR,releasePrehydrate,WORD_CLASS,wordSpans}from"./dom.js";import{toWords}from"./layout.js";import{createCanvasMeasurer,fontOf}from"./measure.js";import{balancedTextScript}from"./prehydrate-script.js";import"./text.css";const useSafeLayoutEffect=typeof window!=="undefined"?React.useLayoutEffect:React.useEffect;const textOf=node=>{if(typeof node==="string"||typeof node==="number")return String(node);if(React.isValidElement(node))return React.Children.toArray(node.props.children).map(textOf).join("");return""};const flatten=children=>React.Children.toArray(children).flatMap(child=>React.isValidElement(child)&&child.type===React.Fragment?flatten(child.props.children):[child]);const shapeOf=node=>{if(!React.isValidElement(node))return String(node);const{type}=node;const name=typeof type==="string"?type:type.displayName??type.name??"?";return`<${name}>${textOf(node)}`};const tokenize=children=>{const tokens=[];let gap="";let lead="";let joined=false;let pos=0;const add=(text,node,spaceBefore)=>{const last=tokens.at(-1);if(joined&&last&&!spaceBefore){last.text+=text;last.end+=text.length;last.nodes.push(node)}else{if(tokens.length===0)lead=gap;tokens.push({text,start:pos,end:pos+text.length,spaceBefore:tokens.length>0&&spaceBefore,nodes:[node],gap:tokens.length>0?gap:""})}pos+=text.length;gap="";joined=true};for(const child of flatten(children)){if(typeof child!=="string"&&typeof child!=="number"){add(textOf(child),child,gap!=="");continue}for(const chunk of String(child).split(/(\s+)/)){if(!chunk)continue;if(/^\s/.test(chunk)){gap+=chunk;joined=false;continue}toWords(chunk).forEach((word,index)=>{if(index>0)joined=false;add(word.text,word.text,index===0&&gap!=="")})}}return{tokens,lead,tail:gap}};const measurers=new Map;const measurerFor=(font,letterSpacing)=>{const key=`${font}|${letterSpacing}`;if(!measurers.has(key))measurers.set(key,createCanvasMeasurer(font,letterSpacing));return measurers.get(key)??null};const SETTLE_MS=100;const MAX_CHURN=6;const BalancedText=({children,as:Tag="span",className,...props})=>{const ref=React.useRef(null);const id=React.useId();const{tokens,lead,tail}=tokenize(children);const key=tokens.map(t=>t.nodes.map(shapeOf).join("")).join("");const[chosen,setChosen]=React.useState(null);const breaks=chosen?.key===key?chosen.breaks:null;const boxed=chosen?.boxed??false;const latest=React.useRef(tokens);const drawnFor=React.useRef(0);const contentSized=React.useRef(false);latest.current=tokens;useSafeLayoutEffect(()=>{const el=ref.current;if(!el)return;let timer;let cancelled=false;let width=contentWidth(el);let churn=0;let churnReset;let gaveUp=false;const apply=breaks2=>{if(++churn>MAX_CHURN){gaveUp=true;setChosen(null);return}clearTimeout(churnReset);churnReset=setTimeout(()=>{churn=0},1e3);drawnFor.current=width;setChosen({key,breaks:breaks2,boxed:contentSized.current})};const compute=()=>{if(gaveUp)return;const pending=fontPending(el);if(pending){pending.then(()=>{if(cancelled)return;for(const m of measurers.values())m?.clear();compute()},()=>{});return}if(el.querySelector(":scope > .text_balanced_line"))return;releasePrehydrate(el);if(wordSpans(el).length!==latest.current.length)return;width=contentWidth(el);const{font,letterSpacing}=fontOf(el);const measure=measurerFor(font,letterSpacing);const breaks2=measure&&chooseDomBreaks(el,measure);if(breaks2)apply(breaks2)};const recompute=()=>{setChosen(null);clearTimeout(timer);timer=setTimeout(()=>{if(!cancelled)compute()},SETTLE_MS)};compute();const observer=typeof ResizeObserver==="undefined"?null:new ResizeObserver(()=>{const next=contentWidth(el);if(next===width)return;width=next;recompute()});observer?.observe(el);return()=>{cancelled=true;clearTimeout(timer);clearTimeout(churnReset);observer?.disconnect()}},[key]);useSafeLayoutEffect(()=>{const el=ref.current;if(!el||!breaks||boxed)return;const style=getComputedStyle(el);const inner=el.clientWidth-Number.parseFloat(style.paddingLeft)-Number.parseFloat(style.paddingRight);let grew=false;if(inner>drawnFor.current+.5){const before=el.clientWidth;el.classList.add("text_balanced_probe");grew=el.clientWidth<before-.5;el.classList.remove("text_balanced_probe")}const right=el.getBoundingClientRect().right-Number.parseFloat(style.paddingRight);const lines=el.querySelectorAll(":scope > .text_balanced_line");const overflow=[...lines].some(line=>line.getBoundingClientRect().right>right+.5);if(grew)contentSized.current=true;if(grew||overflow)setChosen(c=>c?{...c,boxed:true}:c)},[chosen]);const word=i=>{const t=tokens[i];return jsx("span",{className:WORD_CLASS,children:t.nodes.map((node,j)=>jsx(React.Fragment,{children:node},j))},i)};const run=(from,to)=>{const out=[];for(let i=from;i<=to;i++){if(i>from)out.push(tokens[i]?.gap);out.push(word(i))}return out};const body=[];if(breaks){let from=0;for(const end of[...breaks,tokens.length-1]){if(from>0)body.push(tokens[from]?.gap||jsx("wbr",{},`wbr${from}`));body.push(jsx("span",{className:boxed?"text_balanced_line text_balanced_line_boxed":"text_balanced_line",children:run(from,end)},`line${from}`));from=end+1}}else{body.push(run(0,tokens.length-1))}return jsxs(Tag,{ref,...props,className:className?`text_balanced ${className}`:"text_balanced",...{[ID_ATTR]:id},children:[lead,body,tail]})};const BalancedTextScript=({nonce})=>jsx("script",{nonce,dangerouslySetInnerHTML:{__html:balancedTextScript}});export{BalancedText,BalancedTextScript};
@@ -0,0 +1 @@
1
+ const SENTENCE_END=/(?:[^\d]\.|[!?])["')\]”’」』]*$/;const splitSentences=text=>{const sentences=[];let start=-1;let end=0;for(const match of text.matchAll(/\S+/g)){const index=match.index??0;if(start<0)start=index;end=index+match[0].length;if(SENTENCE_END.test(match[0])){sentences.push({text:text.slice(start,end),start,end});start=-1}}if(start>=0)sentences.push({text:text.slice(start,end),start,end});return sentences};const DETERMINERS=new Set(["\uC774","\uADF8","\uC800","\uD55C","\uB450","\uC138","\uB124","\uAC01","\uBAA8\uB4E0","\uCCAB","\uC0C8","\uBA87","\uC628\uAC16","\uC5EC\uB7EC","\uC5B4\uB290","\uBB34\uC2A8","\uC774\uB7F0","\uADF8\uB7F0","\uC800\uB7F0"]);const MAX_PHRASE=3;const NOUNS_ENDING_IN_UI=new Set(["\uD68C\uC758","\uB3D9\uC758","\uC8FC\uC758","\uD611\uC758","\uB17C\uC758","\uAC74\uC758","\uD569\uC758","\uBB38\uC758","\uAC15\uC758","\uC815\uC758","\uC758\uC758","\uD3B8\uC758","\uC608\uC758","\uC131\uC758","\uACB0\uC758","\uBAA8\uC758","\uC2EC\uC758","\uD1A0\uC758","\uC9C8\uC758","\uD56D\uC758"]);const bindsNext=word=>/[가-힣]의$/.test(word)&&!NOUNS_ENDING_IN_UI.has(word)&&!/[가-힣]주의$/.test(word)||DETERMINERS.has(word);const ATTACHES_PREV=/^(?:입니다|입니까|이다|이에요|예요|이죠|이고|이며|이면|(?:수|것|때|줄|뿐|듯|만큼|중)(?:가|도|는|은|을|를|이|에|에서|에는|만|이다|입니다|이에요|예요|이죠)?)[.,!?"')\]”’]*$/;const bindsPrev=word=>ATTACHES_PREV.test(word);const phraseRanges=text=>{const words=[...text.matchAll(/\S+/g)].map(m=>({word:m[0],start:m.index??0,end:(m.index??0)+m[0].length}));const ranges=[];for(let i=0;i<words.length;){let j=i;while(j<words.length-1&&j-i+1<MAX_PHRASE&&(bindsNext(words[j]?.word??"")||bindsPrev(words[j+1]?.word??"")))j++;const first=words[i];const last=words[j];if(j>i&&first&&last)ranges.push({start:first.start,end:last.end});i=j+1}return ranges};const hasFinal=ch=>(ch.charCodeAt(0)-44032)%28!==0;const isModifier=word=>{if(!/^[가-힣]{2,}$/.test(word))return false;const last=word.at(-1)??"";const stem=word.at(-2)??"";if(last==="\uB294")return hasFinal(stem)||/[하되이리오가주보지치키우두쓰뜨나내대르드]/.test(stem);if(last==="\uC740")return/[같작높낮좋많넓좁짧얇붙묶받읽남닫찾놓넣않깊밝]/.test(stem);return/[운된던]/.test(last)};const BARE_END=/[이가은는을를에의와과도만로서고며면게지요다나든야라니죠께해여어아듯]$/;const isBare=word=>/^[가-힣]+$/.test(word)&&!BARE_END.test(word)||/^[A-Za-z0-9][\w.+#-]*$/.test(word);const SPACED_PARTICLE=/^(?:이|가|은|는|을|를|의|와|과|도|만|로|으로|에|에서|에게|부터|까지|처럼|보다|마다|만큼|이나|나|라고|이라고|하고)(?:는|도|만|의)?[.,!?]*$/;const leansNext=(before,after)=>{if(!/^[가-힣\d]/.test(after))return false;return isBare(before)||isModifier(before)};const gapPenalty=(before,after)=>{if(SENTENCE_END.test(before))return 0;if(bindsNext(before)||bindsPrev(after)||after==="\xB7")return 100;if(/[A-Za-z0-9"')\]”’>]$/.test(before)&&SPACED_PARTICLE.test(after))return 100;if(/[,:;]["')\]”’]*$/.test(before))return 1;if(SENTENCE_END.test(after))return 12;if(/·$/.test(before))return 8;if(leansNext(before,after))return 6;return 4};export{gapPenalty,phraseRanges,splitSentences};
@@ -0,0 +1 @@
1
+ import{chooseWordBreaks,layoutBest,layoutNative,scoreBreaks}from"./layout.js";import{fontOf}from"./measure.js";const WORD_CLASS="text_balanced_word";const ID_ATTR="data-balanced";const PREHYDRATE_STYLE_ID="bt-balanced-prehydrate";const rootSelector=id=>`[${ID_ATTR}="${id.replace(/["\\]/g,"\\$&")}"]`;const contentWidth=el=>{const style=getComputedStyle(el);return el.clientWidth-Number.parseFloat(style.paddingLeft)-Number.parseFloat(style.paddingRight)};const wordSpans=el=>[...el.querySelectorAll(`.${WORD_CLASS}`)].filter(span=>!el.contains(span.parentElement?.closest(`.${WORD_CLASS}`)??null));const spaceBefore=span=>{let gap="";for(let n=span.previousSibling;n;n=n.previousSibling){if(n instanceof Element&&n.classList.contains(WORD_CLASS))break;gap+=n.textContent??""}return/\s/.test(gap)};const widthOf=el=>{const rects=[...el.getClientRects()];if(new Set(rects.map(r=>Math.round(r.top))).size<2)return rects.reduce((sum,r)=>sum+r.width,0);el.classList.add("text_balanced_word_measure");const width=el.getBoundingClientRect().width;el.classList.remove("text_balanced_word_measure");return width};const chooseDomBreaks=(el,measure)=>{const width=contentWidth(el);const spans=wordSpans(el);if(width<=0||spans.length===0)return null;const fit=width-1;const words=spans.map((span,i)=>({text:span.textContent??"",start:0,end:0,spaceBefore:i>0&&spaceBefore(span),width:widthOf(span)}));if(words.some(w=>(w.width??0)>fit))return null;let lastTop=0;const tops=spans.map(span=>{const t=[...span.getClientRects()].map(r=>Math.round(r.top));if(t.length===0)return[lastTop];lastTop=t.at(-1)??lastTop;return t});const drawn=new Set(tops.flat()).size;const split=tops.some(t=>new Set(t).size>1);const plain=layoutNative(words,measure,fit).length+1;const acceptable=lines=>{const best=layoutBest(words,measure,fit,lines);return best&&scoreBreaks(words,measure,fit,best).penalty<100?best:null};if(split||plain<drawn){const best=acceptable(Math.min(plain,drawn));if(best)return best;if(split)return acceptable(drawn)??acceptable(drawn+1)}const native=tops.flatMap((t,i)=>i>0&&t[0]!==tops[i-1]?.[0]?[i-1]:[]);const chosen=chooseWordBreaks(words,measure,fit,native).breaks;if(scoreBreaks(words,measure,fit,chosen).penalty>=100)return acceptable(native.length+2)??chosen;return chosen};const fontPending=el=>{const fonts=typeof document==="undefined"?void 0:document.fonts;if(!fonts?.check)return null;const{font}=fontOf(el);const sample=(el.textContent??"").slice(0,64);try{return fonts.check(font,sample)?null:fonts.load(font,sample)}catch{return null}};const releasePrehydrate=el=>{const id=el.getAttribute(ID_ATTR);const sheet=document.getElementById(PREHYDRATE_STYLE_ID)?.sheet;if(!id||!sheet)return;const selector=rootSelector(id);for(let i=sheet.cssRules.length-1;i>=0;i--)if(sheet.cssRules[i].selectorText?.startsWith(selector))sheet.deleteRule(i)};export{ID_ATTR,PREHYDRATE_STYLE_ID,WORD_CLASS,chooseDomBreaks,contentWidth,fontPending,releasePrehydrate,rootSelector,wordSpans};
@@ -0,0 +1 @@
1
+ import{BalancedText,BalancedTextScript}from"./balanced.js";import{phraseRanges,splitSentences}from"./core.js";import{chooseBreaks}from"./layout.js";import{createCanvasMeasurer}from"./measure.js";import{balancedTextScript}from"./prehydrate-script.js";import{renderPhrases,renderSentences,Sentences,sentenceText}from"./react.js";export{BalancedText,BalancedTextScript,Sentences,balancedTextScript,chooseBreaks,createCanvasMeasurer,phraseRanges,renderPhrases,renderSentences,sentenceText,splitSentences};
@@ -0,0 +1 @@
1
+ import{gapPenalty}from"./core.js";const toWords=text=>{const words=[];for(const m of text.matchAll(/\S+/g)){const start=m.index??0;let from=0;for(let i=1;i<m[0].length;i++){const prev=m[0][i-1]??"";const cur=m[0][i]??"";if(cur==="("&&/[가-힣]/.test(prev)||prev===")"&&/[가-힣]/.test(cur)){words.push({text:m[0].slice(from,i),start:start+from,end:start+i,spaceBefore:from===0});from=i}}words.push({text:m[0].slice(from),start:start+from,end:start+m[0].length,spaceBefore:from===0})}if(words[0])words[0].spaceBefore=false;return words};const lineWidths=(words,widths,space)=>{const sum=[0];words.forEach((w,i)=>{sum.push((sum[i]??0)+(widths[i]??0)+(i>0&&w.spaceBefore?space:0))});return(from,to)=>(sum[to+1]??0)-(sum[from]??0)-(from>0&&words[from]?.spaceBefore?space:0)};const layoutNative=(words,measure,maxWidth)=>{const widths=words.map(w=>w.width??measure(w.text));const space=measure(" ");const breaks=[];let width=0;for(let i=0;i<words.length;i++){const w=widths[i]??0;const gap=words[i]?.spaceBefore?space:0;if(i>0&&width+gap+w>maxWidth&&width>0){breaks.push(i-1);width=w}else width=i===0||width===0?w:width+gap+w}return breaks};const scoreBreaks=(words,measure,maxWidth,breaks)=>{const widths=words.map(w=>w.width??measure(w.text));const space=measure(" ");const costs=breakCosts(words);const lineWidth=lineWidths(words,widths,space);let penalty=0;let ragged=0;let from=0;for(const end of breaks){penalty+=costs[end]??0;const slack=(maxWidth-lineWidth(from,end))/maxWidth;ragged+=slack*slack;from=end+1}return{penalty,ragged}};const breakCosts=words=>{const closesAfter=[];let closes=0;for(let i=words.length-1;i>=0;i--){closesAfter[i]=closes;closes+=[...words[i]?.text??""].filter(ch=>ch===")").length}let depth=0;return words.map((word,i)=>{for(const ch of word.text)depth=Math.max(0,depth+(ch==="("?1:ch===")"?-1:0));const open=Math.min(depth,closesAfter[i]??0);const next=words[i+1];let penalty=gapPenalty(word.text,next?.text??"");if(penalty===6&&(words[i-1]?.text==="\xB7"||words[i+2]?.text==="\xB7"))penalty=10;if(open>0)return Math.max(60,penalty);return next?.spaceBefore===false?Math.max(50,penalty):penalty})};const RAGGED_WEIGHT=2;const layoutBest=(words,measure,maxWidth,lines)=>{const n=words.length;if(n===0||lines<1||lines>n)return null;const widths=words.map(w=>w.width??measure(w.text));const space=measure(" ");const costs=breakCosts(words);const cost=Array.from({length:lines},()=>new Array(n).fill(Number.POSITIVE_INFINITY));const from=Array.from({length:lines},()=>new Array(n).fill(-1));const lineWidth=lineWidths(words,widths,space);const fits=(a,b)=>lineWidth(a,b)<=maxWidth;const slack=(a,b)=>{const s=(maxWidth-lineWidth(a,b))/maxWidth;return s*s*RAGGED_WEIGHT};for(let j2=0;j2<n;j2++)if(fits(0,j2))cost[0][j2]=0;for(let k=1;k<lines;k++){const prev=cost[k-1];const cur=cost[k];const at=from[k];for(let j2=k;j2<n;j2++){for(let i=k;i<=j2;i++){if(!fits(i,j2))continue;const before=prev[i-1]??Number.POSITIVE_INFINITY;if(before===Number.POSITIVE_INFINITY)continue;const startOfPrev=k-1===0?0:from[k-1][i-1]??0;const c=before+(costs[i-1]??0)+slack(startOfPrev,i-1);if(c<(cur[j2]??Number.POSITIVE_INFINITY)){cur[j2]=c;at[j2]=i}}}}if(cost[lines-1][n-1]===Number.POSITIVE_INFINITY)return null;const breaks=[];let j=n-1;for(let k=lines-1;k>0;k--){const i=from[k][j]??0;breaks.unshift(i-1);j=i-1}return breaks};const chooseBreaks=(text,measure,maxWidth)=>chooseWordBreaks(toWords(text),measure,maxWidth);const chooseWordBreaks=(words,measure,maxWidth,native=layoutNative(words,measure,maxWidth))=>{const keep={breaks:native,native,changed:false};if(native.length===0||words.some(w=>(w.width??measure(w.text))>maxWidth))return keep;const best=layoutBest(words,measure,maxWidth,native.length+1);if(!best)return keep;const a=scoreBreaks(words,measure,maxWidth,native);const b=scoreBreaks(words,measure,maxWidth,best);return b.penalty<a.penalty?{breaks:best,native,changed:true}:keep};export{chooseBreaks,chooseWordBreaks,layoutBest,layoutNative,scoreBreaks,toWords};
@@ -0,0 +1 @@
1
+ const createCanvasMeasurer=(font,letterSpacing=0)=>{if(typeof document==="undefined")return null;const context=document.createElement("canvas").getContext("2d");if(!context)return null;context.font=font;const cache=new Map;const measure=(text=>{const hit=cache.get(text);if(hit!==void 0)return hit;const width=context.measureText(text).width+letterSpacing*[...text].length;cache.set(text,width);return width});measure.clear=()=>cache.clear();return measure};const fontOf=element=>{const style=getComputedStyle(element);const letterSpacing=Number.parseFloat(style.letterSpacing);return{font:`${style.fontStyle} ${style.fontWeight} ${style.fontSize} ${style.fontFamily}`,letterSpacing:Number.isFinite(letterSpacing)?letterSpacing:0}};export{createCanvasMeasurer,fontOf};
@@ -0,0 +1 @@
1
+ const balancedTextScript='(function(){var e=/(?:[^\\d]\\.|[!?])["\')\\]\u201D\u2019\u300D\u300F]*$/,t=new Set([`\uC774`,`\uADF8`,`\uC800`,`\uD55C`,`\uB450`,`\uC138`,`\uB124`,`\uAC01`,`\uBAA8\uB4E0`,`\uCCAB`,`\uC0C8`,`\uBA87`,`\uC628\uAC16`,`\uC5EC\uB7EC`,`\uC5B4\uB290`,`\uBB34\uC2A8`,`\uC774\uB7F0`,`\uADF8\uB7F0`,`\uC800\uB7F0`]),n=new Set([`\uD68C\uC758`,`\uB3D9\uC758`,`\uC8FC\uC758`,`\uD611\uC758`,`\uB17C\uC758`,`\uAC74\uC758`,`\uD569\uC758`,`\uBB38\uC758`,`\uAC15\uC758`,`\uC815\uC758`,`\uC758\uC758`,`\uD3B8\uC758`,`\uC608\uC758`,`\uC131\uC758`,`\uACB0\uC758`,`\uBAA8\uC758`,`\uC2EC\uC758`,`\uD1A0\uC758`,`\uC9C8\uC758`,`\uD56D\uC758`]),r=e=>/[\uAC00-\uD7A3]\uC758$/.test(e)&&!n.has(e)&&!/[\uAC00-\uD7A3]\uC8FC\uC758$/.test(e)||t.has(e),i=/^(?:\uC785\uB2C8\uB2E4|\uC785\uB2C8\uAE4C|\uC774\uB2E4|\uC774\uC5D0\uC694|\uC608\uC694|\uC774\uC8E0|\uC774\uACE0|\uC774\uBA70|\uC774\uBA74|(?:\uC218|\uAC83|\uB54C|\uC904|\uBFD0|\uB4EF|\uB9CC\uD07C|\uC911)(?:\uAC00|\uB3C4|\uB294|\uC740|\uC744|\uB97C|\uC774|\uC5D0|\uC5D0\uC11C|\uC5D0\uB294|\uB9CC|\uC774\uB2E4|\uC785\uB2C8\uB2E4|\uC774\uC5D0\uC694|\uC608\uC694|\uC774\uC8E0)?)[.,!?"\')\\]\u201D\u2019]*$/,a=e=>i.test(e),o=e=>(e.charCodeAt(0)-44032)%28!=0,s=e=>{if(!/^[\uAC00-\uD7A3]{2,}$/.test(e))return!1;let t=e.at(-1)??``,n=e.at(-2)??``;return t===`\uB294`?o(n)||/[\uD558\uB418\uC774\uB9AC\uC624\uAC00\uC8FC\uBCF4\uC9C0\uCE58\uD0A4\uC6B0\uB450\uC4F0\uB728\uB098\uB0B4\uB300\uB974\uB4DC]/.test(n):t===`\uC740`?/[\uAC19\uC791\uB192\uB0AE\uC88B\uB9CE\uB113\uC881\uC9E7\uC587\uBD99\uBB36\uBC1B\uC77D\uB0A8\uB2EB\uCC3E\uB193\uB123\uC54A\uAE4A\uBC1D]/.test(n):/[\uC6B4\uB41C\uB358]/.test(t)},c=/[\uC774\uAC00\uC740\uB294\uC744\uB97C\uC5D0\uC758\uC640\uACFC\uB3C4\uB9CC\uB85C\uC11C\uACE0\uBA70\uBA74\uAC8C\uC9C0\uC694\uB2E4\uB098\uB4E0\uC57C\uB77C\uB2C8\uC8E0\uAED8\uD574\uC5EC\uC5B4\uC544\uB4EF]$/,l=e=>/^[\uAC00-\uD7A3]+$/.test(e)&&!c.test(e)||/^[A-Za-z0-9][\\w.+#-]*$/.test(e),u=/^(?:\uC774|\uAC00|\uC740|\uB294|\uC744|\uB97C|\uC758|\uC640|\uACFC|\uB3C4|\uB9CC|\uB85C|\uC73C\uB85C|\uC5D0|\uC5D0\uC11C|\uC5D0\uAC8C|\uBD80\uD130|\uAE4C\uC9C0|\uCC98\uB7FC|\uBCF4\uB2E4|\uB9C8\uB2E4|\uB9CC\uD07C|\uC774\uB098|\uB098|\uB77C\uACE0|\uC774\uB77C\uACE0|\uD558\uACE0)(?:\uB294|\uB3C4|\uB9CC|\uC758)?[.,!?]*$/,d=(e,t)=>/^[\uAC00-\uD7A3\\d]/.test(t)?l(e)||s(e):!1,f=(t,n)=>e.test(t)?0:r(t)||a(n)||n===`\xB7`||/[A-Za-z0-9"\')\\]\u201D\u2019>]$/.test(t)&&u.test(n)?100:/[,:;]["\')\\]\u201D\u2019]*$/.test(t)?1:e.test(n)?12:/\xB7$/.test(t)?8:d(t,n)?6:4,p=(e,t,n)=>{let r=[0];return e.forEach((e,i)=>{r.push((r[i]??0)+(t[i]??0)+(i>0&&e.spaceBefore?n:0))}),(t,i)=>(r[i+1]??0)-(r[t]??0)-(t>0&&e[t]?.spaceBefore?n:0)},m=(e,t,n)=>{let r=e.map(e=>e.width??t(e.text)),i=t(` `),a=[],o=0;for(let t=0;t<e.length;t++){let s=r[t]??0,c=e[t]?.spaceBefore?i:0;t>0&&o+c+s>n&&o>0?(a.push(t-1),o=s):o=t===0||o===0?s:o+c+s}return a},h=(e,t,n,r)=>{let i=e.map(e=>e.width??t(e.text)),a=t(` `),o=g(e),s=p(e,i,a),c=0,l=0,u=0;for(let e of r){c+=o[e]??0;let t=(n-s(u,e))/n;l+=t*t,u=e+1}return{penalty:c,ragged:l}},g=e=>{let t=[],n=0;for(let r=e.length-1;r>=0;r--)t[r]=n,n+=[...e[r]?.text??``].filter(e=>e===`)`).length;let r=0;return e.map((n,i)=>{for(let e of n.text)r=Math.max(0,r+(e===`(`?1:e===`)`?-1:0));let a=Math.min(r,t[i]??0),o=e[i+1],s=f(n.text,o?.text??``);return s===6&&(e[i-1]?.text===`\xB7`||e[i+2]?.text===`\xB7`)&&(s=10),a>0?Math.max(60,s):o?.spaceBefore===!1?Math.max(50,s):s})},_=2,v=(e,t,n,r)=>{let i=e.length;if(i===0||r<1||r>i)return null;let a=e.map(e=>e.width??t(e.text)),o=t(` `),s=g(e),c=Array.from({length:r},()=>Array(i).fill(1/0)),l=Array.from({length:r},()=>Array(i).fill(-1)),u=p(e,a,o),d=(e,t)=>u(e,t)<=n,f=(e,t)=>{let r=(n-u(e,t))/n;return r*r*_};for(let e=0;e<i;e++)d(0,e)&&(c[0][e]=0);for(let e=1;e<r;e++){let t=c[e-1],n=c[e],r=l[e];for(let a=e;a<i;a++)for(let i=e;i<=a;i++){if(!d(i,a))continue;let o=t[i-1]??1/0;if(o===1/0)continue;let c=e-1==0?0:l[e-1][i-1]??0,u=o+(s[i-1]??0)+f(c,i-1);u<(n[a]??1/0)&&(n[a]=u,r[a]=i)}}if(c[r-1][i-1]===1/0)return null;let m=[],h=i-1;for(let e=r-1;e>0;e--){let t=l[e][h]??0;m.unshift(t-1),h=t-1}return m},y=(e,t,n,r=m(e,t,n))=>{let i={breaks:r,native:r,changed:!1};if(r.length===0||e.some(e=>(e.width??t(e.text))>n))return i;let a=v(e,t,n,r.length+1);if(!a)return i;let o=h(e,t,n,r);return h(e,t,n,a).penalty<o.penalty?{breaks:a,native:r,changed:!0}:i},b=(e,t=0)=>{if(typeof document>`u`)return null;let n=document.createElement(`canvas`).getContext(`2d`);if(!n)return null;n.font=e;let r=new Map,i=(e=>{let i=r.get(e);if(i!==void 0)return i;let a=n.measureText(e).width+t*[...e].length;return r.set(e,a),a});return i.clear=()=>r.clear(),i},x=e=>{let t=getComputedStyle(e),n=Number.parseFloat(t.letterSpacing);return{font:`${t.fontStyle} ${t.fontWeight} ${t.fontSize} ${t.fontFamily}`,letterSpacing:Number.isFinite(n)?n:0}},S=`text_balanced_word`,C=`data-balanced`,w=`bt-balanced-prehydrate`,T=e=>`[${C}="${e.replace(/["\\\\]/g,`\\\\$&`)}"]`,E=e=>{let t=getComputedStyle(e);return e.clientWidth-Number.parseFloat(t.paddingLeft)-Number.parseFloat(t.paddingRight)},D=e=>[...e.querySelectorAll(`.${S}`)].filter(t=>!e.contains(t.parentElement?.closest(`.text_balanced_word`)??null)),O=e=>{let t=``;for(let n=e.previousSibling;n&&!(n instanceof Element&&n.classList.contains(`text_balanced_word`));n=n.previousSibling)t+=n.textContent??``;return/\\s/.test(t)},k=e=>{let t=[...e.getClientRects()];if(new Set(t.map(e=>Math.round(e.top))).size<2)return t.reduce((e,t)=>e+t.width,0);e.classList.add(`text_balanced_word_measure`);let n=e.getBoundingClientRect().width;return e.classList.remove(`text_balanced_word_measure`),n},A=(e,t)=>{let n=E(e),r=D(e);if(n<=0||r.length===0)return null;let i=n-1,a=r.map((e,t)=>({text:e.textContent??``,start:0,end:0,spaceBefore:t>0&&O(e),width:k(e)}));if(a.some(e=>(e.width??0)>i))return null;let o=0,s=r.map(e=>{let t=[...e.getClientRects()].map(e=>Math.round(e.top));return t.length===0?[o]:(o=t.at(-1)??o,t)}),c=new Set(s.flat()).size,l=s.some(e=>new Set(e).size>1),u=m(a,t,i).length+1,d=e=>{let n=v(a,t,i,e);return n&&h(a,t,i,n).penalty<100?n:null};if(l||u<c){let e=d(Math.min(u,c));if(e)return e;if(l)return d(c)??d(c+1)}let f=s.flatMap((e,t)=>t>0&&e[0]!==s[t-1]?.[0]?[t-1]:[]),p=y(a,t,i,f).breaks;return h(a,t,i,p).penalty>=100?d(f.length+2)??p:p},j=e=>{let t=typeof document>`u`?void 0:document.fonts;if(!t?.check)return null;let{font:n}=x(e),r=(e.textContent??``).slice(0,64);try{return t.check(n,r)?null:t.load(n,r)}catch{return null}},M=e=>{let t=e.getAttribute(C),n=document.getElementById(w)?.sheet;if(!t||!n)return;let r=T(t);for(let e=n.cssRules.length-1;e>=0;e--)n.cssRules[e].selectorText?.startsWith(r)&&n.deleteRule(e)};(()=>{let e=document,t=e.getElementById(w);t||(t=e.createElement(`style`),t.id=w,e.head.appendChild(t));let n=t.sheet;if(!n)return;let r=e=>{let t=e.getAttribute(C);if(!t||e.querySelector(`:scope > .text_balanced_line`))return;let r=j(e);if(r){r.catch(()=>{});return}let{font:i,letterSpacing:a}=x(e),o=b(i,a),s=o&&A(e,o);if(!s?.length)return;let c=T(t),l=e.clientWidth;try{n.insertRule(`${c}{white-space:nowrap}`,n.cssRules.length),n.insertRule(`${c} wbr{display:none}`,n.cssRules.length);for(let e of s)n.insertRule(`${c}>.${S}:nth-child(${e+1} of .${S})::after{content:"\\\\A";white-space:pre}`,n.cssRules.length)}catch{M(e);return}let u=e.getBoundingClientRect().right-Number.parseFloat(getComputedStyle(e).paddingRight),d=e.querySelectorAll(`:scope > .${S}`);(e.clientWidth>l+.5||[...d].some(e=>e.getBoundingClientRect().right>u+.5))&&M(e)};for(let t of e.querySelectorAll(`[${C}]`))r(t);addEventListener(`resize`,()=>t?.remove(),{once:!0})})()})();';export{balancedTextScript};
@@ -0,0 +1 @@
1
+ import{chooseDomBreaks,fontPending,ID_ATTR,PREHYDRATE_STYLE_ID,releasePrehydrate,rootSelector,WORD_CLASS}from"./dom.js";import{createCanvasMeasurer,fontOf}from"./measure.js";const prehydrate=()=>{const doc=document;let style=doc.getElementById(PREHYDRATE_STYLE_ID);if(!style){style=doc.createElement("style");style.id=PREHYDRATE_STYLE_ID;doc.head.appendChild(style)}const sheet=style.sheet;if(!sheet)return;const balance=el=>{const id=el.getAttribute(ID_ATTR);if(!id||el.querySelector(":scope > .text_balanced_line"))return;const pending=fontPending(el);if(pending){pending.catch(()=>{});return}const{font,letterSpacing}=fontOf(el);const measure=createCanvasMeasurer(font,letterSpacing);const breaks=measure&&chooseDomBreaks(el,measure);if(!breaks?.length)return;const root=rootSelector(id);const before=el.clientWidth;try{sheet.insertRule(`${root}{white-space:nowrap}`,sheet.cssRules.length);sheet.insertRule(`${root} wbr{display:none}`,sheet.cssRules.length);for(const end of breaks)sheet.insertRule(`${root}>.${WORD_CLASS}:nth-child(${end+1} of .${WORD_CLASS})::after{content:"\\A";white-space:pre}`,sheet.cssRules.length)}catch{releasePrehydrate(el);return}const right=el.getBoundingClientRect().right-Number.parseFloat(getComputedStyle(el).paddingRight);const words=el.querySelectorAll(`:scope > .${WORD_CLASS}`);if(el.clientWidth>before+.5||[...words].some(w=>w.getBoundingClientRect().right>right+.5))releasePrehydrate(el)};for(const el of doc.querySelectorAll(`[${ID_ATTR}]`))balance(el);addEventListener("resize",()=>style?.remove(),{once:true})};export{prehydrate};
@@ -0,0 +1 @@
1
+ import "../styles/theme.css";import "../styles/autofill.css";import "../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import*as React from"react";import{phraseRanges,splitSentences}from"./core.js";import"./text.css";const renderPhrases=text=>{const ranges=phraseRanges(text);if(ranges.length===0)return text;const out=[];let cursor=0;for(const{start,end}of ranges){out.push(text.slice(cursor,start));out.push(jsx("span",{className:"sentences_phrase",children:text.slice(start,end)},start));cursor=end}out.push(text.slice(cursor));return out};const renderSentences=(content,{continuesFrom=false,continuesTo=false}={})=>{if(typeof content!=="string")return content;const sentences=splitSentences(content);const open=continuesFrom||continuesTo;if(sentences.length===0||sentences.length<2&&!open)return content;const last=sentences[sentences.length-1]?.end??content.length;const unfinished=!/[.!?]["')\]”’」』]*$/.test(content.trimEnd());return[...sentences.map((sentence,index)=>{const partial=continuesFrom&&index===0||continuesTo&&unfinished&&index===sentences.length-1;return jsxs(React.Fragment,{children:[content.slice(index>0?sentences[index-1]?.end??0:0,sentence.start),partial?renderPhrases(sentence.text):jsx("span",{className:"sentences_item",children:renderPhrases(sentence.text)})]},sentence.start)}),content.slice(last)]};const Sentences=({text})=>renderSentences(text);const sentenceText=text=>(_content,element)=>element?.textContent===text&&![...element.children].some(child=>child.textContent===text);export{Sentences,renderPhrases,renderSentences,sentenceText};
@@ -0,0 +1,4 @@
1
+ @charset "UTF-8";
2
+ @layer theme, base, reset, bigtablet, components, utilities;
3
+ @layer bigtablet {
4
+ .sentences_item{display:inline-block}.sentences_phrase{display:inline-block}.text_balanced{text-wrap:pretty}.text_balanced_line{white-space:nowrap}.text_balanced_line wbr,.text_balanced_word_measure wbr{display:none}.text_balanced_word_measure{white-space:nowrap}.text_balanced_line_boxed,.text_balanced_probe>.text_balanced_line{display:inline-block;white-space:normal}}
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .accordion{display:flex;flex-direction:column;border:1px solid var(--bt-color-border-default);border-radius:var(--bt-radius-lg, 12px);overflow:hidden;background:var(--bt-color-bg-solid)}.accordion_item+.accordion_item{border-top:1px solid var(--bt-color-border-default)}.accordion_header{margin:0}.accordion_trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--bt-spacing-12, 12px) var(--bt-spacing-16, 16px);border:none;background:rgba(0,0,0,0);cursor:pointer;color:var(--bt-color-text-heading);font-size:15px;font-weight:500;line-height:22.5px;letter-spacing:0px;text-align:start;transition:background .1s cubic-bezier(0.16, 1, 0.3, 1)}.accordion_trigger:hover:not(:disabled){background:var(--bt-color-state-hover-on-light)}.accordion_trigger:focus-visible{outline:2px solid var(--bt-color-border-focus);outline-offset:calc(-1*2px)}.accordion_trigger:disabled{cursor:not-allowed;opacity:.38}.accordion_title{flex:1}.accordion_chevron{flex-shrink:0;color:var(--bt-color-text-caption);transition:transform .2s cubic-bezier(0.16, 1, 0.3, 1)}.accordion_chevron_open{transform:rotate(180deg)}.accordion_panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(0.16, 1, 0.3, 1)}.accordion_panel_open{grid-template-rows:1fr}.accordion_panel_wrap{overflow:hidden;min-height:0}.accordion_content{padding:var(--bt-spacing-12, 12px) var(--bt-spacing-20, 20px);font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;color:var(--bt-color-text-body)}@media(prefers-reduced-motion: reduce){.accordion_chevron,.accordion_panel{transition:none}}}
4
+ .accordion{overflow-wrap:anywhere;word-break:keep-all;display:flex;flex-direction:column;border:1px solid var(--bt-color-border-default);border-radius:var(--bt-radius-lg, 12px);overflow:hidden;background:var(--bt-color-bg-solid)}.accordion_item+.accordion_item{border-top:1px solid var(--bt-color-border-default)}.accordion_header{margin:0}.accordion_trigger{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--bt-spacing-12, 12px) var(--bt-spacing-16, 16px);border:none;background:rgba(0,0,0,0);cursor:pointer;color:var(--bt-color-text-heading);font-size:15px;font-weight:500;line-height:22.5px;letter-spacing:0px;text-align:start;transition:background .1s cubic-bezier(0.16, 1, 0.3, 1)}.accordion_trigger:hover:not(:disabled){background:var(--bt-color-state-hover-on-light)}.accordion_trigger:focus-visible{outline:2px solid var(--bt-color-border-focus);outline-offset:calc(-1*2px)}.accordion_trigger:disabled{cursor:not-allowed;opacity:.38}.accordion_title{flex:1}.accordion_chevron{flex-shrink:0;color:var(--bt-color-text-caption);transition:transform .2s cubic-bezier(0.16, 1, 0.3, 1)}.accordion_chevron_open{transform:rotate(180deg)}.accordion_panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(0.16, 1, 0.3, 1)}.accordion_panel_open{grid-template-rows:1fr}.accordion_panel_wrap{overflow:hidden;min-height:0}.accordion_content{padding:var(--bt-spacing-12, 12px) var(--bt-spacing-20, 20px);font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;color:var(--bt-color-text-body)}@media(prefers-reduced-motion: reduce){.accordion_chevron,.accordion_panel{transition:none}}}
@@ -1 +1 @@
1
- "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx}from"react/jsx-runtime";import{cn}from"../../../utils/index.js";import"./style.css";const Badge=({tone="accent",shape="label",size="md",appearance="solid",count,max=99,className,children,...props})=>{const content=(()=>{if(shape==="dot")return null;if(shape==="count"&&count!==void 0){return count>max?`${max}+`:String(count)}return children})();return jsx("span",{className:cn("badge",`badge_variant_${tone}`,`badge_shape_${shape}`,`badge_size_${size}`,`badge_appearance_${appearance}`,className),...props,children:content})};export{Badge};
1
+ "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx}from"react/jsx-runtime";import{cn}from"../../../utils/index.js";import"./style.css";const Badge=({tone="accent",shape="label",size="md",appearance="solid",count,max=99,className,children,...props})=>{const content=(()=>{if(shape==="dot")return null;if(shape==="count"&&count!==void 0){return count>max?`${max}+`:String(count)}return children})();return jsx("span",{className:cn("badge",`badge_variant_${tone}`,`badge_shape_${shape}`,`badge_size_${size}`,`badge_appearance_${appearance}`,className),role:shape==="dot"&&(props["aria-label"]||props["aria-labelledby"])?"img":void 0,...props,children:content})};export{Badge};
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .card{background:var(--bt-color-bg-solid);border-radius:var(--bt-radius-lg, 12px);transition:transform .25s cubic-bezier(0.16, 1, 0.3, 1),box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1)}.card:focus-visible,.card:focus-visible:hover{outline:none;box-shadow:var(--bt-focus-ring)}.card_interactive{cursor:pointer}.card_interactive:hover{transform:translateY(-2px);box-shadow:var(--bt-elevation-level2)}.card_bordered{border:1px solid var(--bt-color-border-default)}.card_shadow_none{box-shadow:none}.card_shadow_sm{box-shadow:var(--bt-elevation-level1)}.card_shadow_md{box-shadow:var(--bt-elevation-level2)}.card_shadow_lg{box-shadow:var(--bt-elevation-level3)}.card_p_none{padding:0}.card_p_sm{padding:var(--bt-spacing-8, 8px)}.card_p_md{padding:var(--bt-spacing-16, 16px)}.card_p_lg{padding:var(--bt-spacing-24, 24px)}.card_title{font-size:20px;font-weight:400;line-height:28px;letter-spacing:0px;margin-top:0;margin-bottom:var(--bt-spacing-12, 12px);color:var(--bt-color-text-heading)}.card_body{width:100%}.card_footer{display:flex;gap:var(--bt-spacing-8, 8px);align-items:center;margin-top:var(--bt-spacing-16, 16px);padding-top:var(--bt-spacing-16, 16px);border-top:1px solid var(--bt-color-border-default)}.card_footer_start{justify-content:flex-start}.card_footer_between{justify-content:space-between}.card_footer_end{justify-content:flex-end}.card_variant_accent{background:var(--bt-color-accent-default);color:var(--bt-color-accent-on-surface)}.card_variant_accent .card_title{color:var(--bt-color-accent-on-surface)}.card_variant_accent .card_footer{border-top-color:var(--bt-color-state-hover-on-dark)}.card_variant_outline{background:rgba(0,0,0,0);border:1px solid var(--bt-color-border-default);box-shadow:none}.card_variant_glass{background:rgba(0,0,0,.4);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.08);color:var(--bt-color-brand-on-primary)}.card_variant_glass .card_title{color:var(--bt-color-brand-on-primary)}.card_variant_glass .card_footer{border-top-color:var(--bt-color-state-hover-on-dark)}[data-theme=dark] .card_variant_glass{background:rgba(255,255,255,.05);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px rgba(0,0,0,.12)}@media(prefers-color-scheme: dark){:root:not([data-theme]) .card_variant_glass{background:rgba(255,255,255,.05);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px rgba(0,0,0,.12)}}@media(prefers-reduced-motion: reduce){.card{transition:none}.card_interactive:hover{transform:none}}}
4
+ .card{overflow-wrap:anywhere;word-break:keep-all;background:var(--bt-color-bg-solid);border-radius:var(--bt-radius-lg, 12px);transition:transform .25s cubic-bezier(0.16, 1, 0.3, 1),box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1)}.card:focus-visible,.card:focus-visible:hover{outline:none;box-shadow:var(--bt-focus-ring)}.card_interactive{cursor:pointer}.card_interactive:hover{transform:translateY(-2px);box-shadow:var(--bt-elevation-level2)}.card_bordered{border:1px solid var(--bt-color-border-default)}.card_shadow_none{box-shadow:none}.card_shadow_sm{box-shadow:var(--bt-elevation-level1)}.card_shadow_md{box-shadow:var(--bt-elevation-level2)}.card_shadow_lg{box-shadow:var(--bt-elevation-level3)}.card_p_none{padding:0}.card_p_sm{padding:var(--bt-spacing-8, 8px)}.card_p_md{padding:var(--bt-spacing-16, 16px)}.card_p_lg{padding:var(--bt-spacing-24, 24px)}.card_title{font-size:20px;font-weight:400;line-height:28px;letter-spacing:0px;margin-top:0;margin-bottom:var(--bt-spacing-12, 12px);color:var(--bt-color-text-heading)}.card_body{width:100%}.card_footer{display:flex;gap:var(--bt-spacing-8, 8px);align-items:center;margin-top:var(--bt-spacing-16, 16px);padding-top:var(--bt-spacing-16, 16px);border-top:1px solid var(--bt-color-border-default)}.card_footer_start{justify-content:flex-start}.card_footer_between{justify-content:space-between}.card_footer_end{justify-content:flex-end}.card_variant_accent{background:var(--bt-color-accent-default);color:var(--bt-color-accent-on-surface)}.card_variant_accent .card_title{color:var(--bt-color-accent-on-surface)}.card_variant_accent .card_footer{border-top-color:var(--bt-color-state-hover-on-dark)}.card_variant_outline{background:rgba(0,0,0,0);border:1px solid var(--bt-color-border-default);box-shadow:none}.card_variant_glass{background:rgba(0,0,0,.55);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.08);color:var(--bt-color-brand-on-primary)}.card_variant_glass .card_title{color:var(--bt-color-brand-on-primary)}.card_variant_glass .card_footer{border-top-color:var(--bt-color-state-hover-on-dark)}[data-theme=dark] .card_variant_glass{background:rgba(255,255,255,.05);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px rgba(0,0,0,.12)}@media(prefers-color-scheme: dark){:root:not([data-theme]) .card_variant_glass{background:rgba(255,255,255,.05);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 32px rgba(0,0,0,.12)}}@media(prefers-reduced-motion: reduce){.card{transition:none}.card_interactive:hover{transform:none}}}
@@ -1 +1 @@
1
- "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{cn}from"../../../utils/index.js";import{Button}from"../../general/button/index.js";import"./style.css";const HeroActionButton=({action,variant})=>action.href?jsx(Button,{as:"a",href:action.href,size:"lg",variant,onClick:action.onClick,children:action.label}):jsx(Button,{size:"lg",variant,onClick:action.onClick,children:action.label});const Hero=({height="md",align="left",backgroundImage,backgroundColor,overlay,title,subtitle,eyebrow,textColor="auto",primaryAction,secondaryAction,children,className,style,...props})=>{const resolvedOverlay=overlay===true?"dark":overlay;const isDarkOverlay=resolvedOverlay==="dark";const resolvedTextColor=textColor==="auto"?isDarkOverlay||backgroundImage&&!resolvedOverlay?"inverse":"default":textColor;const heroClassName=cn("hero",`hero_height_${height}`,`hero_align_${align}`,resolvedOverlay&&`hero_overlay_${resolvedOverlay}`,`hero_text_${resolvedTextColor}`,className);const inlineStyle={...style};if(backgroundImage)inlineStyle.backgroundImage=`url("${backgroundImage}")`;if(backgroundColor)inlineStyle.backgroundColor=backgroundColor;return jsxs("section",{className:heroClassName,style:inlineStyle,...props,children:[resolvedOverlay&&jsx("div",{className:"hero_overlay","aria-hidden":"true"}),jsxs("div",{className:"hero_content",children:[eyebrow&&jsx("div",{className:"hero_eyebrow",children:eyebrow}),title&&jsx("h1",{className:"hero_title",children:title}),subtitle&&jsx("p",{className:"hero_subtitle",children:subtitle}),(primaryAction||secondaryAction||children)&&jsxs("div",{className:"hero_actions",children:[primaryAction&&jsx(HeroActionButton,{action:primaryAction,variant:"filled"}),secondaryAction&&jsx(HeroActionButton,{action:secondaryAction,variant:"outline"}),children]})]})]})};export{Hero};
1
+ "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{renderSentences}from"../../../text/index.js";import{cn}from"../../../utils/index.js";import{Button}from"../../general/button/index.js";import"./style.css";const HeroActionButton=({action,variant})=>action.href?jsx(Button,{as:"a",href:action.href,size:"lg",variant,onClick:action.onClick,children:action.label}):jsx(Button,{size:"lg",variant,onClick:action.onClick,children:action.label});const Hero=({height="md",align="left",backgroundImage,backgroundColor,overlay,title,subtitle,eyebrow,textColor="auto",primaryAction,secondaryAction,children,className,style,...props})=>{const resolvedOverlay=overlay===true?"dark":overlay;const isDarkOverlay=resolvedOverlay==="dark";const resolvedTextColor=textColor==="auto"?isDarkOverlay||backgroundImage&&!resolvedOverlay?"inverse":"default":textColor;const heroClassName=cn("hero",`hero_height_${height}`,`hero_align_${align}`,resolvedOverlay&&`hero_overlay_${resolvedOverlay}`,`hero_text_${resolvedTextColor}`,className);const inlineStyle={...style};if(backgroundImage)inlineStyle.backgroundImage=`url("${backgroundImage}")`;if(backgroundColor)inlineStyle.backgroundColor=backgroundColor;return jsxs("section",{className:heroClassName,style:inlineStyle,...props,children:[resolvedOverlay&&jsx("div",{className:"hero_overlay","aria-hidden":"true"}),jsxs("div",{className:"hero_content",children:[eyebrow&&jsx("div",{className:"hero_eyebrow",children:eyebrow}),title&&jsx("h1",{className:"hero_title",children:title}),subtitle&&jsx("p",{className:"hero_subtitle",children:renderSentences(subtitle)}),(primaryAction||secondaryAction||children)&&jsxs("div",{className:"hero_actions",children:[primaryAction&&jsx(HeroActionButton,{action:primaryAction,variant:"filled"}),secondaryAction&&jsx(HeroActionButton,{action:secondaryAction,variant:"outline"}),children]})]})]})};export{Hero};
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .hero{position:relative;display:flex;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}.hero_height_sm{min-height:320px}.hero_height_md{min-height:480px}.hero_height_lg{min-height:640px}.hero_height_full{min-height:100vh}@media(max-width: 599px){.hero_height_sm{min-height:240px}.hero_height_md{min-height:360px}.hero_height_lg{min-height:480px}}.hero .hero_overlay{position:absolute;inset:0;pointer-events:none;z-index:10}.hero_overlay_dark .hero_overlay{background:linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%)}.hero_overlay_light .hero_overlay{background:linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%)}.hero_overlay_light.hero_text_default .hero_eyebrow{color:rgba(0,0,0,.6)}.hero_overlay_light.hero_text_default .hero_title{color:var(--bt-color-brand-primary)}.hero_overlay_light.hero_text_default .hero_subtitle{color:rgba(0,0,0,.85)}.hero_content{position:relative;z-index:100;width:100%;max-width:1200px;margin:0 auto;padding:var(--bt-spacing-48, 48px) var(--bt-spacing-24, 24px);display:flex;flex-direction:column;gap:var(--bt-spacing-16, 16px);align-self:center}@media(max-width: 599px){.hero_content{padding:var(--bt-spacing-32, 32px) var(--bt-spacing-20, 20px);gap:var(--bt-spacing-12, 12px)}}.hero_align_left .hero_content{text-align:start;align-items:flex-start}.hero_align_center .hero_content{text-align:center;align-items:center}.hero_align_right .hero_content{text-align:end;align-items:flex-end}.hero_text_default .hero_eyebrow{color:var(--bt-color-text-caption)}.hero_text_default .hero_title{color:var(--bt-color-text-heading)}.hero_text_default .hero_subtitle{color:var(--bt-color-text-body)}.hero_text_inverse .hero_eyebrow{color:rgba(255,255,255,.7)}.hero_text_inverse .hero_title{color:var(--bt-color-brand-on-primary)}.hero_text_inverse .hero_subtitle{color:rgba(255,255,255,.85)}.hero_text_inverse .hero_actions .button_variant_outline{border-color:rgba(255,255,255,.55);color:var(--bt-color-brand-on-primary)}.hero_text_inverse .hero_actions .button_variant_outline:hover:not(:disabled)::before{background:var(--bt-color-state-hover-on-dark)}.hero_text_inverse .hero_actions .button_variant_outline:focus-visible:not(:disabled)::before{background:var(--bt-color-state-focus-on-dark)}.hero_text_inverse .hero_actions .button_variant_outline:active:not(:disabled)::before{background:var(--bt-color-state-pressed-on-dark)}.hero_text_inverse .hero_actions .button_variant_text{color:rgba(255,255,255,.9)}.hero_text_inverse .hero_actions .button_variant_text:hover:not(:disabled)::before{background:var(--bt-color-state-hover-on-dark)}.hero_text_inverse .hero_actions .button_variant_text:focus-visible:not(:disabled)::before{background:var(--bt-color-state-focus-on-dark)}.hero_text_inverse .hero_actions .button_variant_text:active:not(:disabled)::before{background:var(--bt-color-state-pressed-on-dark)}.hero_eyebrow{font-size:14px;font-weight:500;line-height:20px;letter-spacing:0px;letter-spacing:.32px;text-transform:uppercase}.hero_title{font-size:32px;font-weight:500;line-height:40px;letter-spacing:0px;margin:0}@media(max-width: 599px){.hero_title{font-size:28px;font-weight:500;line-height:36px;letter-spacing:0px}}.hero_subtitle{font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;margin:0;max-width:640px}.hero_actions{display:flex;gap:var(--bt-spacing-8, 8px);margin-top:var(--bt-spacing-8, 8px);flex-wrap:wrap}}
4
+ .hero{overflow-wrap:anywhere;word-break:keep-all;position:relative;display:flex;width:100%;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden}.hero_height_sm{min-height:320px}.hero_height_md{min-height:480px}.hero_height_lg{min-height:640px}.hero_height_full{min-height:100vh}@media(max-width: 599px){.hero_height_sm{min-height:240px}.hero_height_md{min-height:360px}.hero_height_lg{min-height:480px}}.hero .hero_overlay{position:absolute;inset:0;pointer-events:none;z-index:10}.hero_overlay_dark .hero_overlay{background:linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%)}.hero_overlay_light .hero_overlay{background:linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%)}.hero_overlay_light.hero_text_default .hero_eyebrow{color:rgba(0,0,0,.6)}.hero_overlay_light.hero_text_default .hero_title{color:var(--bt-color-brand-primary)}.hero_overlay_light.hero_text_default .hero_subtitle{color:rgba(0,0,0,.85)}.hero_content{position:relative;z-index:100;width:100%;max-width:1200px;margin:0 auto;padding:var(--bt-spacing-48, 48px) var(--bt-spacing-24, 24px);display:flex;flex-direction:column;gap:var(--bt-spacing-16, 16px);align-self:center}@media(max-width: 599px){.hero_content{padding:var(--bt-spacing-32, 32px) var(--bt-spacing-20, 20px);gap:var(--bt-spacing-12, 12px)}}.hero_align_left .hero_content{text-align:start;align-items:flex-start}.hero_align_center .hero_content{text-align:center;align-items:center}.hero_align_right .hero_content{text-align:end;align-items:flex-end}.hero_text_default .hero_eyebrow{color:var(--bt-color-text-caption)}.hero_text_default .hero_title{color:var(--bt-color-text-heading)}.hero_text_default .hero_subtitle{color:var(--bt-color-text-body)}.hero_text_inverse .hero_eyebrow{color:rgba(255,255,255,.7)}.hero_text_inverse .hero_title{color:var(--bt-color-brand-on-primary)}.hero_text_inverse .hero_subtitle{color:rgba(255,255,255,.85)}.hero_text_inverse .hero_actions .button_variant_outline{border-color:rgba(255,255,255,.55);color:var(--bt-color-brand-on-primary)}.hero_text_inverse .hero_actions .button_variant_outline:hover:not(:disabled)::before{background:var(--bt-color-state-hover-on-dark)}.hero_text_inverse .hero_actions .button_variant_outline:focus-visible:not(:disabled)::before{background:var(--bt-color-state-focus-on-dark)}.hero_text_inverse .hero_actions .button_variant_outline:active:not(:disabled)::before{background:var(--bt-color-state-pressed-on-dark)}.hero_text_inverse .hero_actions .button_variant_text{color:rgba(255,255,255,.9)}.hero_text_inverse .hero_actions .button_variant_text:hover:not(:disabled)::before{background:var(--bt-color-state-hover-on-dark)}.hero_text_inverse .hero_actions .button_variant_text:focus-visible:not(:disabled)::before{background:var(--bt-color-state-focus-on-dark)}.hero_text_inverse .hero_actions .button_variant_text:active:not(:disabled)::before{background:var(--bt-color-state-pressed-on-dark)}.hero_eyebrow{font-size:14px;font-weight:500;line-height:20px;letter-spacing:0px;letter-spacing:.32px;text-transform:uppercase}.hero_title{font-size:32px;font-weight:500;line-height:40px;letter-spacing:0px;margin:0}@media(max-width: 599px){.hero_title{font-size:28px;font-weight:500;line-height:36px;letter-spacing:0px}}.hero_subtitle{font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;margin:0;max-width:640px}.hero_actions{display:flex;gap:var(--bt-spacing-8, 8px);margin-top:var(--bt-spacing-8, 8px);flex-wrap:wrap}}
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .list_item{position:relative;display:flex;flex-direction:column;align-items:stretch;min-height:52px;border:1px solid var(--bt-color-border-default);border-radius:var(--bt-radius-lg, 12px);overflow:hidden;background:var(--bt-color-bg-solid)}.list_item_state_layer{display:flex;gap:var(--bt-spacing-4, 4px);align-items:flex-start;min-height:52px;padding-left:var(--bt-spacing-16, 16px);padding-right:var(--bt-spacing-16, 16px);position:relative}.list_item_align_middle>.list_item_state_layer{align-items:center}.list_item_selected{background:var(--bt-color-accent-subtle);position:relative}.list_item_selected::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--bt-color-accent-default)}.list_item_interactive{cursor:pointer}.list_item_interactive .list_item_state_layer::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transition:background .2s ease-in-out;pointer-events:none}.list_item_interactive:hover .list_item_state_layer::before{background:var(--bt-color-state-hover-on-light)}.list_item_interactive:focus-visible .list_item_state_layer::before{background:var(--bt-color-state-focus-on-light)}.list_item_interactive:active .list_item_state_layer::before{background:var(--bt-color-state-pressed-on-light)}.list_item_content{flex:1;display:flex;flex-direction:column;gap:var(--bt-spacing-2, 2px);min-width:0;padding:var(--bt-spacing-12, 12px) 0}.list_item_overline{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:12px;font-weight:400;line-height:16px;letter-spacing:.32px;color:var(--bt-color-text-caption)}.list_item_label{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:14px;font-weight:500;line-height:20px;color:var(--bt-color-text-heading)}.list_item_supporting{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:14px;font-weight:400;line-height:20px;color:var(--bt-color-text-body)}.list_item_metadata{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:14px;font-weight:400;line-height:20px;color:var(--bt-color-text-body);margin-top:var(--bt-spacing-8, 8px)}.list_item_leading{display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--bt-spacing-4, 4px)}.list_item_trailing{display:flex;align-items:flex-start;justify-content:flex-end;flex-shrink:0}.list_item_disabled{opacity:.38;pointer-events:none}@media(prefers-reduced-motion: reduce){.list_item_interactive .list_item_state_layer::before{transition:none}}}
4
+ .list_item{overflow-wrap:anywhere;word-break:keep-all;position:relative;display:flex;flex-direction:column;align-items:stretch;min-height:52px;border:1px solid var(--bt-color-border-default);border-radius:var(--bt-radius-lg, 12px);overflow:hidden;background:var(--bt-color-bg-solid)}.list_item_state_layer{display:flex;gap:var(--bt-spacing-4, 4px);align-items:flex-start;min-height:52px;padding-left:var(--bt-spacing-16, 16px);padding-right:var(--bt-spacing-16, 16px);position:relative}.list_item_align_middle>.list_item_state_layer{align-items:center}.list_item_selected{background:var(--bt-color-accent-subtle);position:relative}.list_item_selected::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--bt-color-accent-default)}.list_item_interactive{cursor:pointer}.list_item_interactive .list_item_state_layer::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;transition:background .2s ease-in-out;pointer-events:none}.list_item_interactive:hover .list_item_state_layer::before{background:var(--bt-color-state-hover-on-light)}.list_item_interactive:focus-visible .list_item_state_layer::before{background:var(--bt-color-state-focus-on-light)}.list_item_interactive:active .list_item_state_layer::before{background:var(--bt-color-state-pressed-on-light)}.list_item_content{flex:1;display:flex;flex-direction:column;gap:var(--bt-spacing-2, 2px);min-width:0;padding:var(--bt-spacing-12, 12px) 0}.list_item_overline{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:12px;font-weight:400;line-height:16px;letter-spacing:.32px;color:var(--bt-color-text-caption)}.list_item_label{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:14px;font-weight:500;line-height:20px;color:var(--bt-color-text-heading)}.list_item_supporting{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:14px;font-weight:400;line-height:20px;color:var(--bt-color-text-body)}.list_item_metadata{font-family:var(--bt-font-family, "Pretendard", sans-serif);font-size:14px;font-weight:400;line-height:20px;color:var(--bt-color-text-body);margin-top:var(--bt-spacing-8, 8px)}.list_item_leading{display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:var(--bt-spacing-4, 4px)}.list_item_trailing{display:flex;align-items:flex-start;justify-content:flex-end;flex-shrink:0}.list_item_disabled{opacity:.38;pointer-events:none}@media(prefers-reduced-motion: reduce){.list_item_interactive .list_item_state_layer::before{transition:none}}}
@@ -1 +1 @@
1
- "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{useEffect,useRef,useState}from"react";import{cn,keyActivationProps}from"../../../utils/index.js";import"./style.css";const MediaCard=({image,imagePosition="top",aspectRatio,heading,headingAs:HeadingTag="h3",eyebrow,shadow="sm",bordered=false,clickable=false,meta,children,className,...props})=>{const cardClassName=cn("media_card",`media_card_image_${imagePosition}`,`media_card_shadow_${shadow}`,bordered&&"media_card_bordered",clickable&&"media_card_clickable",className);const isOverlay=imagePosition==="overlay";const cardStyle=isOverlay&&aspectRatio?{aspectRatio}:void 0;const wrapStyle=!isOverlay&&aspectRatio?{aspectRatio}:void 0;const[failedSrc,setFailedSrc]=useState(null);const imageFailed=failedSrc===image.src;const imgRef=useRef(null);useEffect(()=>{const img=imgRef.current;if(img?.complete&&img.naturalWidth===0&&img.currentSrc)setFailedSrc(image.src)},[image.src]);const activation=keyActivationProps({onClick:props.onClick,role:props.role,onKeyDown:props.onKeyDown});return jsxs("div",{className:cardClassName,style:cardStyle,role:activation.role,tabIndex:activation.tabIndex,...props,onKeyDown:activation.onKeyDown,onClick:activation.onClick,children:[jsxs("div",{className:"media_card_image_wrap",style:wrapStyle,children:[jsx("img",{ref:imgRef,className:cn("media_card_image",imageFailed&&"media_card_image_failed"),src:image.src,alt:image.alt,loading:"lazy",onError:()=>setFailedSrc(image.src)}),isOverlay&&jsx("div",{className:"media_card_overlay","aria-hidden":"true"})]}),jsxs("div",{className:"media_card_body",children:[eyebrow&&jsx("div",{className:"media_card_eyebrow",children:eyebrow}),heading&&jsx(HeadingTag,{className:"media_card_heading",children:heading}),children&&jsx("div",{className:"media_card_content",children}),meta&&jsx("div",{className:"media_card_meta",children:meta})]})]})};export{MediaCard};
1
+ "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{useEffect,useRef,useState}from"react";import{renderSentences}from"../../../text/index.js";import{cn,keyActivationProps}from"../../../utils/index.js";import"./style.css";const MediaCard=({image,imagePosition="top",aspectRatio,heading,headingAs:HeadingTag="h3",eyebrow,shadow="sm",bordered=false,clickable=false,meta,children,className,...props})=>{const cardClassName=cn("media_card",`media_card_image_${imagePosition}`,`media_card_shadow_${shadow}`,bordered&&"media_card_bordered",clickable&&"media_card_clickable",className);const isOverlay=imagePosition==="overlay";const cardStyle=isOverlay&&aspectRatio?{aspectRatio}:void 0;const wrapStyle=!isOverlay&&aspectRatio?{aspectRatio}:void 0;const[failedSrc,setFailedSrc]=useState(null);const imageFailed=failedSrc===image.src;const imgRef=useRef(null);useEffect(()=>{const img=imgRef.current;if(img?.complete&&img.naturalWidth===0&&img.currentSrc)setFailedSrc(image.src)},[image.src]);const activation=keyActivationProps({onClick:props.onClick,role:props.role,onKeyDown:props.onKeyDown});return jsxs("div",{className:cardClassName,style:cardStyle,role:activation.role,tabIndex:activation.tabIndex,...props,onKeyDown:activation.onKeyDown,onClick:activation.onClick,children:[jsxs("div",{className:"media_card_image_wrap",style:wrapStyle,children:[jsx("img",{ref:imgRef,className:cn("media_card_image",imageFailed&&"media_card_image_failed"),src:image.src,alt:image.alt,loading:"lazy",onError:()=>setFailedSrc(image.src)}),isOverlay&&jsx("div",{className:"media_card_overlay","aria-hidden":"true"})]}),jsxs("div",{className:"media_card_body",children:[eyebrow&&jsx("div",{className:"media_card_eyebrow",children:eyebrow}),heading&&jsx(HeadingTag,{className:"media_card_heading",children:heading}),children&&jsx("div",{className:"media_card_content",children:renderSentences(children)}),meta&&jsx("div",{className:"media_card_meta",children:meta})]})]})};export{MediaCard};
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .media_card{position:relative;display:flex;background:var(--bt-color-bg-solid);border-radius:var(--bt-radius-lg, 12px);overflow:hidden}.media_card:focus-visible,.media_card:focus-visible:hover{outline:none;box-shadow:var(--bt-focus-ring)}.media_card{transition:transform .2s ease-in-out,box-shadow .2s ease-in-out}.media_card_shadow_sm{box-shadow:var(--bt-elevation-level1)}.media_card_shadow_md{box-shadow:var(--bt-elevation-level2)}.media_card_shadow_lg{box-shadow:var(--bt-elevation-level3)}.media_card_bordered{border:1px solid var(--bt-color-border-default)}.media_card_clickable{cursor:pointer}.media_card_clickable:hover{transform:translateY(-2px);box-shadow:var(--bt-elevation-level3)}.media_card_image_wrap{position:relative;flex-shrink:0;background:var(--bt-color-bg-solid-dim);overflow:hidden}.media_card_image_failed{opacity:0}.media_card_image{width:100%;height:100%;object-fit:cover;display:block}.media_card_body{flex:1;display:flex;flex-direction:column;gap:var(--bt-spacing-8, 8px);padding:var(--bt-spacing-16, 16px) var(--bt-spacing-20, 20px)}.media_card_eyebrow{font-size:13px;font-weight:500;line-height:18px;letter-spacing:0px;letter-spacing:.32px;color:var(--bt-color-text-caption);text-transform:uppercase}.media_card_heading{font-size:18px;font-weight:500;line-height:24px;letter-spacing:0px;color:var(--bt-color-text-heading);margin:0}.media_card_content{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;color:var(--bt-color-text-body);flex:1}.media_card_meta{font-size:13px;font-weight:400;line-height:18px;letter-spacing:0px;color:var(--bt-color-text-caption);margin-top:var(--bt-spacing-4, 4px)}.media_card_image_top{flex-direction:column}.media_card_image_top .media_card_image_wrap:not([style*=aspect-ratio]){aspect-ratio:16/9}.media_card_image_left{flex-direction:row}.media_card_image_left .media_card_image_wrap{width:40%;max-width:320px}@media(max-width: 599px){.media_card_image_left{flex-direction:column}.media_card_image_left .media_card_image_wrap{width:100%;max-width:none;aspect-ratio:16/9}}.media_card_image_overlay{display:block;position:relative;color:var(--bt-color-brand-on-primary)}.media_card_image_overlay:not([style*=aspect-ratio]){aspect-ratio:4/3}.media_card_image_overlay .media_card_image_wrap{position:absolute;inset:0;z-index:0}.media_card_image_overlay .media_card_overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);pointer-events:none;z-index:1}.media_card_image_overlay .media_card_body{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end}.media_card_image_overlay .media_card_eyebrow{color:rgba(255,255,255,.75)}.media_card_image_overlay .media_card_heading{color:var(--bt-color-brand-on-primary)}.media_card_image_overlay .media_card_content{color:rgba(255,255,255,.85);flex:0 0 auto}.media_card_image_overlay .media_card_meta{color:rgba(255,255,255,.6)}@media(prefers-reduced-motion: reduce){.media_card{transition:none}.media_card_clickable:hover{transform:none}}}
4
+ .media_card{overflow-wrap:anywhere;word-break:keep-all;position:relative;display:flex;background:var(--bt-color-bg-solid);border-radius:var(--bt-radius-lg, 12px);overflow:hidden}.media_card:focus-visible,.media_card:focus-visible:hover{outline:none;box-shadow:var(--bt-focus-ring)}.media_card{transition:transform .2s ease-in-out,box-shadow .2s ease-in-out}.media_card_shadow_sm{box-shadow:var(--bt-elevation-level1)}.media_card_shadow_md{box-shadow:var(--bt-elevation-level2)}.media_card_shadow_lg{box-shadow:var(--bt-elevation-level3)}.media_card_bordered{border:1px solid var(--bt-color-border-default)}.media_card_clickable{cursor:pointer}.media_card_clickable:hover{transform:translateY(-2px);box-shadow:var(--bt-elevation-level3)}.media_card_image_wrap{position:relative;flex-shrink:0;background:var(--bt-color-bg-solid-dim);overflow:hidden}.media_card_image_failed{opacity:0}.media_card_image{width:100%;height:100%;object-fit:cover;display:block}.media_card_body{flex:1;display:flex;flex-direction:column;gap:var(--bt-spacing-8, 8px);padding:var(--bt-spacing-16, 16px) var(--bt-spacing-20, 20px)}.media_card_eyebrow{font-size:13px;font-weight:500;line-height:18px;letter-spacing:0px;letter-spacing:.32px;color:var(--bt-color-text-caption);text-transform:uppercase}.media_card_heading{font-size:18px;font-weight:500;line-height:24px;letter-spacing:0px;color:var(--bt-color-text-heading);margin:0}.media_card_content{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;color:var(--bt-color-text-body);flex:1}.media_card_meta{font-size:13px;font-weight:400;line-height:18px;letter-spacing:0px;color:var(--bt-color-text-caption);margin-top:var(--bt-spacing-4, 4px)}.media_card_image_top{flex-direction:column}.media_card_image_top .media_card_image_wrap:not([style*=aspect-ratio]){aspect-ratio:16/9}.media_card_image_left{flex-direction:row}.media_card_image_left .media_card_image_wrap{width:40%;max-width:320px}@media(max-width: 599px){.media_card_image_left{flex-direction:column}.media_card_image_left .media_card_image_wrap{width:100%;max-width:none;aspect-ratio:16/9}}.media_card_image_overlay{display:block;position:relative;color:var(--bt-color-brand-on-primary)}.media_card_image_overlay:not([style*=aspect-ratio]){aspect-ratio:4/3}.media_card_image_overlay .media_card_image_wrap{position:absolute;inset:0;z-index:0}.media_card_image_overlay .media_card_overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);pointer-events:none;z-index:1}.media_card_image_overlay .media_card_body{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end}.media_card_image_overlay .media_card_eyebrow{color:rgba(255,255,255,.75)}.media_card_image_overlay .media_card_heading{color:var(--bt-color-brand-on-primary)}.media_card_image_overlay .media_card_content{color:rgba(255,255,255,.85);flex:0 0 auto}.media_card_image_overlay .media_card_meta{color:rgba(255,255,255,.6)}@media(prefers-reduced-motion: reduce){.media_card{transition:none}.media_card_clickable:hover{transform:none}}}
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .prose{font-family:var(--bt-font-family, "Pretendard", sans-serif);color:var(--bt-color-text-heading);font-size:15px;font-weight:400;line-height:22.5px;letter-spacing:0px}.prose p,.prose ul,.prose ol,.prose blockquote,.prose table,.prose pre{margin:0 0 var(--bt-spacing-16, 16px)}.prose>:last-child{margin-bottom:0}.prose,.prose p,.prose li,.prose blockquote,.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6,.prose dl,.prose dd,.prose ul,.prose ol{white-space:normal}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{color:var(--bt-color-text-heading);margin:var(--bt-spacing-20, 20px) 0 var(--bt-spacing-8, 8px)}.prose h1:first-child,.prose h2:first-child,.prose h3:first-child,.prose h4:first-child,.prose h5:first-child,.prose h6:first-child{margin-top:0}.prose h1{font-size:24px;font-weight:700;line-height:32px;letter-spacing:-0.01em;padding-bottom:var(--bt-spacing-8, 8px);border-bottom:1px solid var(--bt-color-border-default)}.prose h2{font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}.prose h3{font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}.prose h4,.prose h5,.prose h6{font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}.prose ul,.prose ol{padding-left:var(--bt-spacing-24, 24px)}.prose ul{list-style:disc}.prose ol{list-style:decimal}.prose li{margin-bottom:var(--bt-spacing-4, 4px)}.prose li>p{margin-bottom:0}.prose li ul,.prose li ol{margin:var(--bt-spacing-4, 4px) 0 0}.prose code{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:13px;line-height:18px;background:var(--bt-color-bg-solid-dim);color:var(--bt-color-text-heading);border-radius:var(--bt-radius-xs, 4px);padding:.2em .45em}.prose pre{background:var(--bt-color-bg-inverse-surface);border-radius:var(--bt-radius-md, 8px);padding:var(--bt-spacing-20, 20px);overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--bt-color-border-hover) rgba(0,0,0,0)}.prose pre code{background:rgba(0,0,0,0);color:var(--bt-color-text-inverse);padding:0;border-radius:0}.prose blockquote{border-left:4px solid var(--bt-color-accent-default);background:color-mix(in srgb, var(--bt-color-accent-default) 5%, transparent);border-radius:0 var(--bt-radius-sm, 6px) var(--bt-radius-sm, 6px) 0;padding:var(--bt-spacing-8, 8px) var(--bt-spacing-12, 12px);color:var(--bt-color-text-body)}.prose blockquote>:last-child{margin-bottom:0}.prose blockquote blockquote{border-left:none;padding-left:0;background:rgba(0,0,0,0);margin-bottom:0}.prose a{color:var(--bt-color-accent-default);text-decoration:underline;text-underline-offset:.15em}.prose a:hover{text-decoration-thickness:2px}.prose a:focus-visible{outline:none;border-radius:var(--bt-radius-xs, 4px);box-shadow:var(--bt-focus-ring)}.prose strong{font-weight:600}.prose em{font-style:italic}.prose del{text-decoration:line-through;color:var(--bt-color-text-caption)}.prose hr{border:none;border-top:2px solid var(--bt-color-border-default);margin:var(--bt-spacing-24, 24px) 0}.prose img{max-width:100%;height:auto;border-radius:var(--bt-radius-sm, 6px);display:block;margin:var(--bt-spacing-16, 16px) auto}.prose table{display:block;width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--bt-color-border-hover) rgba(0,0,0,0);border-collapse:collapse}.prose pre[tabindex]:focus-visible,.prose table[tabindex]:focus-visible{outline:none;box-shadow:var(--bt-focus-ring)}.prose th,.prose td{padding:var(--bt-spacing-4, 4px) var(--bt-spacing-12, 12px);border:1px solid var(--bt-color-border-default);text-align:left;white-space:nowrap}.prose th{background:var(--bt-color-bg-solid-dim);font-weight:600}.prose_size_lg{font-size:16px;line-height:28px}.prose_size_lg h1,.prose_size_lg h2,.prose_size_lg h3,.prose_size_lg h4,.prose_size_lg h5,.prose_size_lg h6{margin-top:var(--bt-spacing-32, 32px)}.prose_size_lg h1{font-size:28px;font-weight:700;line-height:36px;letter-spacing:-0.01em}.prose_size_lg h2{font-size:24px;font-weight:700;line-height:32px;letter-spacing:-0.01em}.prose_size_lg h3{font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}.prose_size_lg h4,.prose_size_lg h5,.prose_size_lg h6{font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px;line-height:28px}.prose_size_lg li{margin-bottom:var(--bt-spacing-8, 8px)}}
4
+ .prose{overflow-wrap:anywhere;word-break:keep-all;font-family:var(--bt-font-family, "Pretendard", sans-serif);color:var(--bt-color-text-heading);font-size:15px;font-weight:400;line-height:22.5px;letter-spacing:0px}.prose p,.prose ul,.prose ol,.prose blockquote,.prose table,.prose pre{margin:0 0 var(--bt-spacing-16, 16px)}.prose>:last-child{margin-bottom:0}.prose,.prose p,.prose li,.prose blockquote,.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6,.prose dl,.prose dd,.prose ul,.prose ol{white-space:normal}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{color:var(--bt-color-text-heading);margin:var(--bt-spacing-20, 20px) 0 var(--bt-spacing-8, 8px)}.prose h1:first-child,.prose h2:first-child,.prose h3:first-child,.prose h4:first-child,.prose h5:first-child,.prose h6:first-child{margin-top:0}.prose h1{font-size:24px;font-weight:700;line-height:32px;letter-spacing:-0.01em;padding-bottom:var(--bt-spacing-8, 8px);border-bottom:1px solid var(--bt-color-border-default)}.prose h2{font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}.prose h3{font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}.prose h4,.prose h5,.prose h6{font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}.prose ul,.prose ol{padding-left:var(--bt-spacing-24, 24px)}.prose ul{list-style:disc}.prose ol{list-style:decimal}.prose li{margin-bottom:var(--bt-spacing-4, 4px)}.prose li>p{margin-bottom:0}.prose li ul,.prose li ol{margin:var(--bt-spacing-4, 4px) 0 0}.prose code{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:13px;line-height:18px;background:var(--bt-color-bg-solid-dim);color:var(--bt-color-text-heading);border-radius:var(--bt-radius-xs, 4px);padding:.2em .45em}.prose pre{background:var(--bt-color-bg-inverse-surface);border-radius:var(--bt-radius-md, 8px);padding:var(--bt-spacing-20, 20px);overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--bt-color-border-hover) rgba(0,0,0,0)}.prose pre code{background:rgba(0,0,0,0);color:var(--bt-color-text-inverse);padding:0;border-radius:0}.prose blockquote{border-left:4px solid var(--bt-color-accent-default);background:color-mix(in srgb, var(--bt-color-accent-default) 5%, transparent);border-radius:0 var(--bt-radius-sm, 6px) var(--bt-radius-sm, 6px) 0;padding:var(--bt-spacing-8, 8px) var(--bt-spacing-12, 12px);color:var(--bt-color-text-body)}.prose blockquote>:last-child{margin-bottom:0}.prose blockquote blockquote{border-left:none;padding-left:0;background:rgba(0,0,0,0);margin-bottom:0}.prose a{color:var(--bt-color-accent-default);text-decoration:underline;text-underline-offset:.15em}.prose a:hover{text-decoration-thickness:2px}.prose a:focus-visible{outline:none;border-radius:var(--bt-radius-xs, 4px);box-shadow:var(--bt-focus-ring)}.prose strong{font-weight:600}.prose em{font-style:italic}.prose del{text-decoration:line-through;color:var(--bt-color-text-caption)}.prose hr{border:none;border-top:2px solid var(--bt-color-border-default);margin:var(--bt-spacing-24, 24px) 0}.prose img{max-width:100%;height:auto;border-radius:var(--bt-radius-sm, 6px);display:block;margin:var(--bt-spacing-16, 16px) auto}.prose table{display:block;width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--bt-color-border-hover) rgba(0,0,0,0);border-collapse:collapse}.prose pre[tabindex]:focus-visible,.prose table[tabindex]:focus-visible{outline:none;box-shadow:var(--bt-focus-ring)}.prose th,.prose td{padding:var(--bt-spacing-4, 4px) var(--bt-spacing-12, 12px);border:1px solid var(--bt-color-border-default);text-align:left;white-space:nowrap}.prose th{background:var(--bt-color-bg-solid-dim);font-weight:600}.prose_size_lg{font-size:16px;line-height:28px}.prose_size_lg h1,.prose_size_lg h2,.prose_size_lg h3,.prose_size_lg h4,.prose_size_lg h5,.prose_size_lg h6{margin-top:var(--bt-spacing-32, 32px)}.prose_size_lg h1{font-size:28px;font-weight:700;line-height:36px;letter-spacing:-0.01em}.prose_size_lg h2{font-size:24px;font-weight:700;line-height:32px;letter-spacing:-0.01em}.prose_size_lg h3{font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}.prose_size_lg h4,.prose_size_lg h5,.prose_size_lg h6{font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px;line-height:28px}.prose_size_lg li{margin-bottom:var(--bt-spacing-8, 8px)}}
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .stat{display:flex;flex-direction:column;gap:var(--bt-spacing-4, 4px);font-family:var(--bt-font-family, "Pretendard", sans-serif)}.stat_label{display:flex;align-items:center;gap:var(--bt-spacing-4, 4px);color:var(--bt-color-text-caption);font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px}.stat_icon{display:inline-flex;flex:0 0 auto}.stat_value{color:var(--bt-color-text-heading);font-size:24px;font-weight:700;line-height:32px;letter-spacing:-0.01em;font-variant-numeric:tabular-nums}.stat_delta{font-size:14px;font-weight:500;line-height:20px;letter-spacing:0px;font-variant-numeric:tabular-nums}.stat_delta_positive{color:var(--bt-color-status-success-on-surface)}.stat_delta_negative{color:var(--bt-color-status-error-on-surface)}.stat_delta_neutral{color:var(--bt-color-text-caption)}}
4
+ .stat{overflow-wrap:anywhere;word-break:keep-all;display:flex;flex-direction:column;gap:var(--bt-spacing-4, 4px);font-family:var(--bt-font-family, "Pretendard", sans-serif)}.stat_label{display:flex;align-items:center;gap:var(--bt-spacing-4, 4px);color:var(--bt-color-text-caption);font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px}.stat_icon{display:inline-flex;flex:0 0 auto}.stat_value{color:var(--bt-color-text-heading);font-size:24px;font-weight:700;line-height:32px;letter-spacing:-0.01em;font-variant-numeric:tabular-nums}.stat_delta{font-size:14px;font-weight:500;line-height:20px;letter-spacing:0px;font-variant-numeric:tabular-nums}.stat_delta_positive{color:var(--bt-color-status-success-on-surface)}.stat_delta_negative{color:var(--bt-color-status-error-on-surface)}.stat_delta_neutral{color:var(--bt-color-text-caption)}}
@@ -1 +1 @@
1
- "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{AlertTriangle,CheckCircle2,Info,XCircle}from"lucide-react";import*as React from"react";import{createContext,useCallback,useContext,useState}from"react";import{createPortal}from"react-dom";import{iconSize}from"../../../styles/icon/index.js";import{cn,lockBodyScroll,renderSentences,unlockBodyScroll,useFocusTrap,useOverlayEscape,usePresence}from"../../../utils/index.js";import{Button}from"../../general/button/index.js";import{useLocaleText}from"../../system/locale-provider/index.js";import{Spinner}from"../spinner/index.js";import"./style.css";const ICONS={info:jsx(Info,{size:iconSize.lg,"aria-hidden":"true"}),success:jsx(CheckCircle2,{size:iconSize.lg,"aria-hidden":"true"}),warning:jsx(AlertTriangle,{size:iconSize.lg,"aria-hidden":"true"}),error:jsx(XCircle,{size:iconSize.lg,"aria-hidden":"true"})};const AlertContext=createContext(null);const useConfirm=()=>useAlert().confirm;const useAlert=()=>{const context=useContext(AlertContext);if(!context){throw new Error("[Bigtablet DS] useAlert\uB294 <AlertProvider> \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4.\n\n\uC571 \uCD5C\uC0C1\uB2E8\uC5D0 <AlertProvider>\uB85C \uAC10\uC2F8\uC8FC\uC138\uC694:\n <AlertProvider>\n <YourApp />\n </AlertProvider>")}return context};const AlertProvider=({children})=>{const[alertState,setAlertState]=useState({isOpen:false});const[pending,setPending]=useState(false);const resolveRef=React.useRef(null);const tokenRef=React.useRef(0);const settle=useCallback(ok=>{const resolve=resolveRef.current;resolveRef.current=null;resolve?.(ok)},[]);React.useEffect(()=>()=>settle(false),[settle]);const showAlert=useCallback(options=>{settle(false);const token=++tokenRef.current;setPending(false);setAlertState({...options,isOpen:true});return{update:patch=>{if(token!==tokenRef.current)return;setAlertState(prev=>prev.isOpen?{...prev,...patch,isOpen:true}:prev)}}},[settle]);const confirm=useCallback(options=>new Promise(resolve=>{showAlert({...options,showCancel:true});resolveRef.current=resolve}),[showAlert]);const handleClose=useCallback(()=>{setAlertState(prev=>({...prev,isOpen:false}))},[]);const handleExited=useCallback(()=>{setAlertState(prev=>prev.isOpen?prev:{isOpen:false})},[]);const handleConfirm=useCallback(()=>{if(pending||alertState.confirmDisabled)return;const token=tokenRef.current;const result=alertState.onConfirm?.();if(result&&typeof result.then==="function"){setPending(true);result.then(()=>{if(token!==tokenRef.current)return;setPending(false);settle(true);handleClose()},()=>{if(token===tokenRef.current)setPending(false)});return}settle(true);handleClose()},[alertState.confirmDisabled,alertState.onConfirm,handleClose,pending,settle]);const handleCancel=useCallback(()=>{if(pending)return;alertState.onCancel?.();settle(false);handleClose()},[alertState.onCancel,handleClose,pending,settle]);return jsxs(AlertContext.Provider,{value:{showAlert,confirm},children:[children,jsx(AlertModal,{...alertState,pending,onConfirm:handleConfirm,onCancel:handleCancel,onClose:handleCancel,onExited:handleExited})]})};const AlertModal=({isOpen,tone="info",title,message,confirmText:confirmTextProp,cancelText:cancelTextProp,showCancel=false,destructive=false,actionsAlign="right",showIcon=false,closeOnOverlay=true,confirmDisabled=false,pending=false,onConfirm,onCancel,onClose,onExited})=>{const t=useLocaleText();const locked=confirmDisabled&&!pending;const confirmText=confirmTextProp??t("alert.confirm");const cancelText=cancelTextProp??t("alert.cancel");const dismiss=onCancel??onClose;const panelRef=React.useRef(null);const pressedOverlayRef=React.useRef(false);const titleId=React.useId();const messageId=React.useId();const overlayRef=React.useRef(null);const shouldRender=usePresence(isOpen,[overlayRef,panelRef],onExited);const state=isOpen?"open":"closed";useFocusTrap(panelRef,isOpen);useOverlayEscape(isOpen,()=>dismiss());React.useEffect(()=>{if(!shouldRender)return;lockBodyScroll();return()=>{unlockBodyScroll()}},[shouldRender]);if(!isOpen&&!shouldRender)return null;const confirmVariant="filled";const cancelVariant="outline";const modalClassName=cn("alert_modal",`alert_variant_${tone}`);return createPortal(jsx("div",{ref:overlayRef,className:"alert_overlay","data-state":state,role:"presentation",onPointerDown:e=>{pressedOverlayRef.current=e.target===e.currentTarget},onClick:e=>{if(!closeOnOverlay)return;if(e.target!==e.currentTarget)return;if(!pressedOverlayRef.current)return;dismiss()},children:jsxs("div",{ref:panelRef,className:modalClassName,"data-state":state,onClick:e=>e.stopPropagation(),onKeyDown:e=>{if(e.key!=="Escape")e.stopPropagation()},role:"alertdialog","aria-modal":"true","aria-busy":pending||void 0,"aria-labelledby":title?titleId:void 0,"aria-describedby":message?messageId:void 0,children:[(showIcon||title)&&jsxs("div",{className:"alert_header",children:[showIcon&&jsx("span",{className:cn("alert_icon",`alert_icon_${tone}`),"aria-hidden":"true",children:ICONS[tone]}),title&&jsx("div",{className:"alert_title",id:titleId,children:title})]}),message&&jsx("div",{className:"alert_message",id:messageId,children:renderSentences(message)}),jsxs("div",{className:cn("alert_actions",`alert_actions_${actionsAlign}`),children:[showCancel&&jsx(Button,{variant:cancelVariant,size:"md",radius:"md","aria-disabled":pending||void 0,onClick:onCancel,children:cancelText}),jsx(Button,{variant:confirmVariant,danger:destructive,size:"md",radius:"md",className:locked?"button_disabled":void 0,"aria-disabled":pending||locked||void 0,leadingIcon:pending?jsx("span",{"aria-hidden":"true",children:jsx(Spinner,{size:16})}):void 0,onClick:onConfirm,children:confirmText})]})]})}),document.body)};export{AlertProvider,useAlert,useConfirm};
1
+ "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{AlertTriangle,CheckCircle2,Info,XCircle}from"lucide-react";import*as React from"react";import{createContext,useCallback,useContext,useState}from"react";import{createPortal}from"react-dom";import{iconSize}from"../../../styles/icon/index.js";import{renderSentences}from"../../../text/index.js";import{cn,lockBodyScroll,unlockBodyScroll,useFocusTrap,useOverlayEscape,usePresence}from"../../../utils/index.js";import{Button}from"../../general/button/index.js";import{useLocaleText}from"../../system/locale-provider/index.js";import{Spinner}from"../spinner/index.js";import"./style.css";const ICONS={info:jsx(Info,{size:iconSize.lg,"aria-hidden":"true"}),success:jsx(CheckCircle2,{size:iconSize.lg,"aria-hidden":"true"}),warning:jsx(AlertTriangle,{size:iconSize.lg,"aria-hidden":"true"}),error:jsx(XCircle,{size:iconSize.lg,"aria-hidden":"true"})};const AlertContext=createContext(null);const useConfirm=()=>useAlert().confirm;const useAlert=()=>{const context=useContext(AlertContext);if(!context){throw new Error("[Bigtablet DS] useAlert\uB294 <AlertProvider> \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4.\n\n\uC571 \uCD5C\uC0C1\uB2E8\uC5D0 <AlertProvider>\uB85C \uAC10\uC2F8\uC8FC\uC138\uC694:\n <AlertProvider>\n <YourApp />\n </AlertProvider>")}return context};const AlertProvider=({children})=>{const[alertState,setAlertState]=useState({isOpen:false});const[pending,setPending]=useState(false);const resolveRef=React.useRef(null);const tokenRef=React.useRef(0);const settle=useCallback(ok=>{const resolve=resolveRef.current;resolveRef.current=null;resolve?.(ok)},[]);React.useEffect(()=>()=>settle(false),[settle]);const showAlert=useCallback(options=>{settle(false);const token=++tokenRef.current;setPending(false);setAlertState({...options,isOpen:true});return{update:patch=>{if(token!==tokenRef.current)return;setAlertState(prev=>prev.isOpen?{...prev,...patch,isOpen:true}:prev)}}},[settle]);const confirm=useCallback(options=>new Promise(resolve=>{showAlert({...options,showCancel:true});resolveRef.current=resolve}),[showAlert]);const handleClose=useCallback(()=>{setAlertState(prev=>({...prev,isOpen:false}))},[]);const handleExited=useCallback(()=>{setAlertState(prev=>prev.isOpen?prev:{isOpen:false})},[]);const handleConfirm=useCallback(()=>{if(pending||alertState.confirmDisabled)return;const token=tokenRef.current;const result=alertState.onConfirm?.();if(result&&typeof result.then==="function"){setPending(true);result.then(()=>{if(token!==tokenRef.current)return;setPending(false);settle(true);handleClose()},()=>{if(token===tokenRef.current)setPending(false)});return}settle(true);handleClose()},[alertState.confirmDisabled,alertState.onConfirm,handleClose,pending,settle]);const handleCancel=useCallback(()=>{if(pending)return;alertState.onCancel?.();settle(false);handleClose()},[alertState.onCancel,handleClose,pending,settle]);return jsxs(AlertContext.Provider,{value:{showAlert,confirm},children:[children,jsx(AlertModal,{...alertState,pending,onConfirm:handleConfirm,onCancel:handleCancel,onClose:handleCancel,onExited:handleExited})]})};const AlertModal=({isOpen,tone="info",title,message,confirmText:confirmTextProp,cancelText:cancelTextProp,showCancel=false,destructive=false,actionsAlign="right",showIcon=false,closeOnOverlay=true,confirmDisabled=false,pending=false,onConfirm,onCancel,onClose,onExited})=>{const t=useLocaleText();const locked=confirmDisabled&&!pending;const confirmText=confirmTextProp??t("alert.confirm");const cancelText=cancelTextProp??t("alert.cancel");const dismiss=onCancel??onClose;const panelRef=React.useRef(null);const pressedOverlayRef=React.useRef(false);const titleId=React.useId();const messageId=React.useId();const overlayRef=React.useRef(null);const shouldRender=usePresence(isOpen,[overlayRef,panelRef],onExited);const state=isOpen?"open":"closed";useFocusTrap(panelRef,isOpen);useOverlayEscape(isOpen,()=>dismiss());React.useEffect(()=>{if(!shouldRender)return;lockBodyScroll();return()=>{unlockBodyScroll()}},[shouldRender]);if(!isOpen&&!shouldRender)return null;const confirmVariant="filled";const cancelVariant="outline";const modalClassName=cn("alert_modal",`alert_variant_${tone}`);return createPortal(jsx("div",{ref:overlayRef,className:"alert_overlay","data-state":state,role:"presentation",onPointerDown:e=>{pressedOverlayRef.current=e.target===e.currentTarget},onClick:e=>{if(!closeOnOverlay)return;if(e.target!==e.currentTarget)return;if(!pressedOverlayRef.current)return;dismiss()},children:jsxs("div",{ref:panelRef,className:modalClassName,"data-state":state,onClick:e=>e.stopPropagation(),onKeyDown:e=>{if(e.key!=="Escape")e.stopPropagation()},role:"alertdialog","aria-modal":"true","aria-busy":pending||void 0,"aria-labelledby":title?titleId:void 0,"aria-describedby":message?messageId:void 0,children:[(showIcon||title)&&jsxs("div",{className:"alert_header",children:[showIcon&&jsx("span",{className:cn("alert_icon",`alert_icon_${tone}`),"aria-hidden":"true",children:ICONS[tone]}),title&&jsx("div",{className:"alert_title",id:titleId,children:title})]}),message&&jsx("div",{className:"alert_message",id:messageId,children:renderSentences(message)}),jsxs("div",{className:cn("alert_actions",`alert_actions_${actionsAlign}`),children:[showCancel&&jsx(Button,{variant:cancelVariant,size:"md",radius:"md","aria-disabled":pending||void 0,onClick:onCancel,children:cancelText}),jsx(Button,{variant:confirmVariant,danger:destructive,size:"md",radius:"md",className:locked?"button_disabled":void 0,"aria-disabled":pending||locked||void 0,leadingIcon:pending?jsx("span",{"aria-hidden":"true",children:jsx(Spinner,{size:16})}):void 0,onClick:onConfirm,children:confirmText})]})]})}),document.body)};export{AlertProvider,useAlert,useConfirm};
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .alert_overlay{position:fixed;top:0;right:0;bottom:0;left:0;padding-right:var(--bt-scrollbar-width, 0px);background:var(--bt-color-bg-overlay);display:flex;align-items:center;justify-content:center;z-index:1000;will-change:opacity;transition:opacity .3s linear(0, 0.069, 0.219, 0.39, 0.551, 0.687, 0.793, 0.871, 0.926, 0.963, 0.985, 0.998, 1)}.alert_overlay[data-state=closed]{opacity:0}@starting-style{.alert_overlay{opacity:0}}@media(prefers-reduced-motion: reduce){.alert_overlay{transition:none}}.alert_modal{background:var(--bt-color-bg-solid);border-radius:var(--bt-radius-lg, 12px);min-width:320px;max-width:480px;box-shadow:var(--bt-elevation-level4);will-change:transform,opacity;transition:opacity .3s linear(0, 0.069, 0.219, 0.39, 0.551, 0.687, 0.793, 0.871, 0.926, 0.963, 0.985, 0.998, 1),transform .3s linear(0, 0.069, 0.219, 0.39, 0.551, 0.687, 0.793, 0.871, 0.926, 0.963, 0.985, 0.998, 1)}.alert_modal[data-state=closed]{opacity:0;transform:scale(0.96) translateY(-4px)}@starting-style{.alert_modal{opacity:0;transform:scale(0.96) translateY(-4px)}}@media(prefers-reduced-motion: reduce){.alert_modal{transition:none}}.alert_modal{overflow:hidden}.alert_header{display:flex;align-items:flex-start;gap:var(--bt-spacing-8, 8px);padding:var(--bt-spacing-20, 20px) var(--bt-spacing-20, 20px) var(--bt-spacing-4, 4px)}.alert_icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;margin-top:2px}.alert_icon_info{color:var(--bt-color-status-info-on-surface)}.alert_icon_success{color:var(--bt-color-status-success-on-surface)}.alert_icon_warning{color:var(--bt-color-status-warning-on-surface)}.alert_icon_error{color:var(--bt-color-status-error-on-surface)}.alert_title{flex:1;font-size:18px;font-weight:500;line-height:24px;letter-spacing:0px;color:var(--bt-color-text-heading)}.alert_variant_info .alert_title{color:var(--bt-color-status-info-on-surface)}.alert_variant_info .alert_actions .button_variant_filled{background:var(--bt-color-status-info)}.alert_variant_success .alert_title{color:var(--bt-color-status-success-on-surface)}.alert_variant_success .alert_actions .button_variant_filled{background:var(--bt-color-status-success)}.alert_variant_warning .alert_title{color:var(--bt-color-status-warning-on-surface)}.alert_variant_warning .alert_actions .button_variant_filled{background:var(--bt-color-status-warning)}.alert_variant_error .alert_title{color:var(--bt-color-status-error-on-surface)}.alert_variant_error .alert_actions .button_variant_filled{background:var(--bt-color-status-error)}.alert_message{font-size:15px;font-weight:400;line-height:22.5px;letter-spacing:0px;color:var(--bt-color-text-body);padding:0 var(--bt-spacing-20, 20px) var(--bt-spacing-20, 20px)}.alert_actions{display:flex;gap:var(--bt-spacing-8, 8px);align-items:center;padding:0 var(--bt-spacing-20, 20px) var(--bt-spacing-20, 20px)}.alert_actions_left{justify-content:flex-start}.alert_actions_center{justify-content:center}.alert_actions_right{justify-content:flex-end}.alert_actions .button[aria-disabled=true]{cursor:progress}.alert_actions .button[aria-disabled=true]:not(:last-child){opacity:.38}@media(forced-colors: active){.alert_modal{border:1px solid CanvasText}}}
4
+ .alert_overlay{overflow-wrap:anywhere;word-break:keep-all;position:fixed;top:0;right:0;bottom:0;left:0;padding-right:var(--bt-scrollbar-width, 0px);background:var(--bt-color-bg-overlay);display:flex;align-items:center;justify-content:center;z-index:1000;will-change:opacity;transition:opacity .3s linear(0, 0.069, 0.219, 0.39, 0.551, 0.687, 0.793, 0.871, 0.926, 0.963, 0.985, 0.998, 1)}.alert_overlay[data-state=closed]{opacity:0}@starting-style{.alert_overlay{opacity:0}}@media(prefers-reduced-motion: reduce){.alert_overlay{transition:none}}.alert_modal{background:var(--bt-color-bg-solid);border-radius:var(--bt-radius-lg, 12px);min-width:320px;max-width:480px;box-shadow:var(--bt-elevation-level4);will-change:transform,opacity;transition:opacity .3s linear(0, 0.069, 0.219, 0.39, 0.551, 0.687, 0.793, 0.871, 0.926, 0.963, 0.985, 0.998, 1),transform .3s linear(0, 0.069, 0.219, 0.39, 0.551, 0.687, 0.793, 0.871, 0.926, 0.963, 0.985, 0.998, 1)}.alert_modal[data-state=closed]{opacity:0;transform:scale(0.96) translateY(-4px)}@starting-style{.alert_modal{opacity:0;transform:scale(0.96) translateY(-4px)}}@media(prefers-reduced-motion: reduce){.alert_modal{transition:none}}.alert_modal{overflow:hidden}.alert_header{display:flex;align-items:flex-start;gap:var(--bt-spacing-8, 8px);padding:var(--bt-spacing-20, 20px) var(--bt-spacing-20, 20px) var(--bt-spacing-4, 4px)}.alert_icon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;margin-top:2px}.alert_icon_info{color:var(--bt-color-status-info-on-surface)}.alert_icon_success{color:var(--bt-color-status-success-on-surface)}.alert_icon_warning{color:var(--bt-color-status-warning-on-surface)}.alert_icon_error{color:var(--bt-color-status-error-on-surface)}.alert_title{flex:1;font-size:18px;font-weight:500;line-height:24px;letter-spacing:0px;color:var(--bt-color-text-heading)}.alert_variant_info .alert_title{color:var(--bt-color-status-info-on-surface)}.alert_variant_info .alert_actions .button_variant_filled{background:var(--bt-color-status-info)}.alert_variant_success .alert_title{color:var(--bt-color-status-success-on-surface)}.alert_variant_success .alert_actions .button_variant_filled{background:var(--bt-color-status-success)}.alert_variant_warning .alert_title{color:var(--bt-color-status-warning-on-surface)}.alert_variant_warning .alert_actions .button_variant_filled{background:var(--bt-color-status-warning)}.alert_variant_error .alert_title{color:var(--bt-color-status-error-on-surface)}.alert_variant_error .alert_actions .button_variant_filled{background:var(--bt-color-status-error)}.alert_message{font-size:15px;font-weight:400;line-height:22.5px;letter-spacing:0px;color:var(--bt-color-text-body);padding:0 var(--bt-spacing-20, 20px) var(--bt-spacing-20, 20px)}.alert_actions{display:flex;gap:var(--bt-spacing-8, 8px);align-items:center;padding:0 var(--bt-spacing-20, 20px) var(--bt-spacing-20, 20px)}.alert_actions_left{justify-content:flex-start}.alert_actions_center{justify-content:center}.alert_actions_right{justify-content:flex-end}.alert_actions .button[aria-disabled=true]{cursor:progress}.alert_actions .button[aria-disabled=true]:not(:last-child){opacity:.38}@media(forced-colors: active){.alert_modal{border:1px solid CanvasText}}}
@@ -1 +1 @@
1
- "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{cn}from"../../../utils/index.js";import"./style.css";const EmptyState=({illustration,title,description,action,size="md",fillHeight,className,...props})=>{return jsxs("div",{className:cn("empty_state",`empty_state_size_${size}`,fillHeight&&"empty_state_fill_height",className),...props,children:[illustration&&jsx("div",{className:"empty_state_illustration","aria-hidden":"true",children:illustration}),title&&jsx("h3",{className:"empty_state_title",children:title}),description&&jsx("p",{className:"empty_state_description",children:description}),action&&jsx("div",{className:"empty_state_action",children:action})]})};export{EmptyState};
1
+ "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{renderSentences}from"../../../text/index.js";import{cn}from"../../../utils/index.js";import"./style.css";const EmptyState=({illustration,title,description,action,size="md",fillHeight,className,...props})=>{return jsxs("div",{className:cn("empty_state",`empty_state_size_${size}`,fillHeight&&"empty_state_fill_height",className),...props,children:[illustration&&jsx("div",{className:"empty_state_illustration","aria-hidden":"true",children:illustration}),title&&jsx("h3",{className:"empty_state_title",children:title}),description&&jsx("p",{className:"empty_state_description",children:renderSentences(description)}),action&&jsx("div",{className:"empty_state_action",children:action})]})};export{EmptyState};
@@ -1,4 +1,4 @@
1
1
  @charset "UTF-8";
2
2
  @layer theme, base, reset, bigtablet, components, utilities;
3
3
  @layer bigtablet {
4
- .empty_state{display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;box-sizing:border-box}.empty_state_title{font-size:18px;font-weight:500;line-height:24px;letter-spacing:0px;color:var(--bt-color-text-heading);margin:0}.empty_state_description{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;color:var(--bt-color-text-body);margin:0;max-width:480px}.empty_state_fill_height{flex:1;justify-content:center}.empty_state_illustration{color:var(--bt-color-text-caption);display:inline-flex}.empty_state_illustration:has(>.lucide){align-items:center;justify-content:center;border-radius:var(--bt-radius-full, 9999px);background:var(--bt-color-bg-additive)}.empty_state_size_sm{padding:var(--bt-spacing-24, 24px) var(--bt-spacing-16, 16px);gap:var(--bt-spacing-4, 4px)}.empty_state_size_sm .empty_state_illustration{margin-bottom:var(--bt-spacing-12, 12px)}.empty_state_size_sm .empty_state_title{font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}.empty_state_size_sm .empty_state_action{margin-top:var(--bt-spacing-16, 16px)}.empty_state_size_sm .empty_state_illustration:has(>.lucide){width:var(--bt-spacing-40, 40px);height:var(--bt-spacing-40, 40px)}.empty_state_size_sm .empty_state_illustration:has(>.lucide)>.lucide{width:20px;height:20px}.empty_state_size_md{padding:var(--bt-spacing-40, 40px) var(--bt-spacing-24, 24px);gap:var(--bt-spacing-8, 8px)}.empty_state_size_md .empty_state_illustration{margin-bottom:var(--bt-spacing-16, 16px)}.empty_state_size_md .empty_state_action{margin-top:var(--bt-spacing-24, 24px)}.empty_state_size_md .empty_state_illustration:has(>.lucide){width:var(--bt-spacing-64, 64px);height:var(--bt-spacing-64, 64px)}.empty_state_size_md .empty_state_illustration:has(>.lucide)>.lucide{width:32px;height:32px}.empty_state_size_lg{padding:var(--bt-spacing-48, 48px) var(--bt-spacing-24, 24px);gap:var(--bt-spacing-8, 8px)}.empty_state_size_lg .empty_state_illustration{margin-bottom:var(--bt-spacing-20, 20px)}.empty_state_size_lg .empty_state_title{font-size:20px;font-weight:500;line-height:28px;letter-spacing:0px}.empty_state_size_lg .empty_state_action{margin-top:var(--bt-spacing-32, 32px)}.empty_state_size_lg .empty_state_illustration:has(>.lucide){width:var(--bt-spacing-96, 96px);height:var(--bt-spacing-96, 96px)}.empty_state_size_lg .empty_state_illustration:has(>.lucide)>.lucide{width:var(--bt-spacing-48, 48px);height:var(--bt-spacing-48, 48px)}}
4
+ .empty_state{overflow-wrap:anywhere;word-break:keep-all;display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;box-sizing:border-box}.empty_state_title{font-size:18px;font-weight:500;line-height:24px;letter-spacing:0px;color:var(--bt-color-text-heading);margin:0}.empty_state_description{font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;color:var(--bt-color-text-body);margin:0;max-width:480px}.empty_state_fill_height{flex:1;justify-content:center}.empty_state_illustration{color:var(--bt-color-text-caption);display:inline-flex}.empty_state_illustration:has(>.lucide){align-items:center;justify-content:center;border-radius:var(--bt-radius-full, 9999px);background:var(--bt-color-bg-additive)}.empty_state_size_sm{padding:var(--bt-spacing-24, 24px) var(--bt-spacing-16, 16px);gap:var(--bt-spacing-4, 4px)}.empty_state_size_sm .empty_state_illustration{margin-bottom:var(--bt-spacing-12, 12px)}.empty_state_size_sm .empty_state_title{font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}.empty_state_size_sm .empty_state_action{margin-top:var(--bt-spacing-16, 16px)}.empty_state_size_sm .empty_state_illustration:has(>.lucide){width:var(--bt-spacing-40, 40px);height:var(--bt-spacing-40, 40px)}.empty_state_size_sm .empty_state_illustration:has(>.lucide)>.lucide{width:20px;height:20px}.empty_state_size_md{padding:var(--bt-spacing-40, 40px) var(--bt-spacing-24, 24px);gap:var(--bt-spacing-8, 8px)}.empty_state_size_md .empty_state_illustration{margin-bottom:var(--bt-spacing-16, 16px)}.empty_state_size_md .empty_state_action{margin-top:var(--bt-spacing-24, 24px)}.empty_state_size_md .empty_state_illustration:has(>.lucide){width:var(--bt-spacing-64, 64px);height:var(--bt-spacing-64, 64px)}.empty_state_size_md .empty_state_illustration:has(>.lucide)>.lucide{width:32px;height:32px}.empty_state_size_lg{padding:var(--bt-spacing-48, 48px) var(--bt-spacing-24, 24px);gap:var(--bt-spacing-8, 8px)}.empty_state_size_lg .empty_state_illustration{margin-bottom:var(--bt-spacing-20, 20px)}.empty_state_size_lg .empty_state_title{font-size:20px;font-weight:500;line-height:28px;letter-spacing:0px}.empty_state_size_lg .empty_state_action{margin-top:var(--bt-spacing-32, 32px)}.empty_state_size_lg .empty_state_illustration:has(>.lucide){width:var(--bt-spacing-96, 96px);height:var(--bt-spacing-96, 96px)}.empty_state_size_lg .empty_state_illustration:has(>.lucide)>.lucide{width:var(--bt-spacing-48, 48px);height:var(--bt-spacing-48, 48px)}}
@@ -1 +1 @@
1
- "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{TriangleAlert}from"lucide-react";import{cn}from"../../../utils/index.js";import{useLocaleText}from"../../system/locale-provider/index.js";import"./style.css";const ErrorState=({title:titleProp,description,icon,action,variant="page",className,...props})=>{const t=useLocaleText();const title=titleProp===void 0?t("errorState.title"):titleProp;const resolvedIcon=icon===null?null:icon??jsx(TriangleAlert,{strokeWidth:1.5});return jsxs("div",{className:cn("error_state",`error_state_variant_${variant}`,className),role:"alert",...props,children:[resolvedIcon&&jsx("div",{className:"error_state_icon","aria-hidden":"true",children:resolvedIcon}),title&&jsx("h3",{className:"error_state_title",children:title}),description&&jsx("p",{className:"error_state_description",children:description}),action&&jsx("div",{className:"error_state_action",children:action})]})};export{ErrorState};
1
+ "use client";import "../../../styles/theme.css";import "../../../styles/autofill.css";import "../../../styles/link.css";import{jsx,jsxs}from"react/jsx-runtime";import{TriangleAlert}from"lucide-react";import{renderSentences}from"../../../text/index.js";import{cn}from"../../../utils/index.js";import{useLocaleText}from"../../system/locale-provider/index.js";import"./style.css";const ErrorState=({title:titleProp,description,icon,action,variant="page",className,...props})=>{const t=useLocaleText();const title=titleProp===void 0?t("errorState.title"):titleProp;const resolvedIcon=icon===null?null:icon??jsx(TriangleAlert,{strokeWidth:1.5});return jsxs("div",{className:cn("error_state",`error_state_variant_${variant}`,className),role:"alert",...props,children:[resolvedIcon&&jsx("div",{className:"error_state_icon","aria-hidden":"true",children:resolvedIcon}),title&&jsx("h3",{className:"error_state_title",children:title}),description&&jsx("p",{className:"error_state_description",children:renderSentences(description)}),action&&jsx("div",{className:"error_state_action",children:action})]})};export{ErrorState};