@skeletonlabs/skeleton 0.132.5 → 1.1.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 (88) hide show
  1. package/README.md +7 -6
  2. package/components/Accordion/Accordion.svelte.d.ts +3 -3
  3. package/components/Accordion/AccordionItem.svelte +1 -1
  4. package/components/AppBar/AppBar.svelte +1 -1
  5. package/components/AppBar/AppBar.svelte.d.ts +2 -2
  6. package/components/AppRail/AppRailTile.svelte.d.ts +2 -2
  7. package/components/AppShell/AppShell.svelte +1 -1
  8. package/components/AppShell/AppShell.svelte.d.ts +8 -8
  9. package/components/Autocomplete/Autocomplete.svelte +79 -0
  10. package/components/Autocomplete/Autocomplete.svelte.d.ts +44 -0
  11. package/components/Autocomplete/types.d.ts +10 -0
  12. package/components/Autocomplete/types.js +2 -0
  13. package/components/Avatar/Avatar.svelte +6 -2
  14. package/components/ConicGradient/ConicGradient.svelte +2 -2
  15. package/components/ConicGradient/ConicGradient.svelte.d.ts +6 -6
  16. package/components/FileButton/FileButton.svelte +12 -5
  17. package/components/FileButton/FileButton.svelte.d.ts +4 -0
  18. package/components/FileDropzone/FileDropzone.svelte +5 -2
  19. package/components/FileDropzone/FileDropzone.svelte.d.ts +7 -5
  20. package/components/InputChip/InputChip.svelte +14 -13
  21. package/components/InputChip/InputChip.svelte.d.ts +3 -0
  22. package/components/ListBox/ListBox.svelte +1 -1
  23. package/components/ListBox/ListBox.svelte.d.ts +1 -0
  24. package/components/ProgressBar/ProgressBar.svelte +1 -1
  25. package/components/ProgressRadial/ProgressRadial.svelte +3 -2
  26. package/components/ProgressRadial/ProgressRadial.svelte.d.ts +2 -0
  27. package/components/Radio/RadioGroup.svelte.d.ts +1 -0
  28. package/components/Radio/RadioItem.svelte +3 -1
  29. package/components/Radio/RadioItem.svelte.d.ts +2 -0
  30. package/components/RangeSlider/RangeSlider.svelte +1 -1
  31. package/components/Stepper/Step.svelte +12 -3
  32. package/components/Stepper/Step.svelte.d.ts +3 -0
  33. package/components/Stepper/Stepper.svelte +8 -1
  34. package/components/Stepper/Stepper.svelte.d.ts +11 -3
  35. package/components/Tab/Tab.svelte +2 -1
  36. package/components/Tab/Tab.svelte.d.ts +2 -0
  37. package/components/Tab/TabGroup.svelte +4 -2
  38. package/components/Tab/TabGroup.svelte.d.ts +2 -0
  39. package/components/Table/Table.svelte +2 -0
  40. package/components/Table/Table.svelte.d.ts +2 -0
  41. package/components/TableOfContents/TableOfContents.svelte +25 -18
  42. package/fonts/quicksand/Quicksand-VariableFont_wght.ttf +0 -0
  43. package/index.d.ts +2 -0
  44. package/index.js +1 -0
  45. package/package.json +5 -1
  46. package/styles/elements/buttons.css +4 -0
  47. package/styles/elements/forms.css +4 -1
  48. package/styles/elements/lists.css +2 -0
  49. package/styles/elements/logo-clouds.css +1 -1
  50. package/styles/elements/tables.css +4 -3
  51. package/styles/tailwind.css +1 -1
  52. package/styles/typography.css +12 -10
  53. package/styles/variants.css +3 -1
  54. package/tailwind/generated/intellisense-classes.cjs +1 -1
  55. package/tailwind/generated/intellisense-classes.d.cts +316 -117
  56. package/tailwind/intellisense.cjs +1 -1
  57. package/tailwind/tokens/backgrounds.cjs +1 -1
  58. package/tailwind/tokens/border-radius.cjs +1 -1
  59. package/tailwind/tokens/borders.cjs +1 -1
  60. package/tailwind/tokens/fills.cjs +1 -1
  61. package/tailwind/tokens/rings.cjs +3 -3
  62. package/tailwind/tokens/text.cjs +1 -1
  63. package/themes/theme-gold-nouveau.css +3 -11
  64. package/themes/theme-hamlindigo.css +1 -3
  65. package/themes/theme-modern.css +0 -1
  66. package/themes/theme-rocket.css +6 -9
  67. package/themes/theme-sahara.css +4 -7
  68. package/themes/theme-seafoam.css +1 -2
  69. package/themes/theme-seasonal.css +0 -1
  70. package/themes/theme-skeleton.css +3 -17
  71. package/themes/theme-vintage.css +2 -4
  72. package/types/tailwind.d.ts +1 -1
  73. package/types/tailwind.js +1 -1
  74. package/utilities/CodeBlock/CodeBlock.svelte.d.ts +9 -9
  75. package/utilities/Drawer/Drawer.svelte +3 -2
  76. package/utilities/Drawer/Drawer.svelte.d.ts +4 -2
  77. package/utilities/Drawer/types.d.ts +3 -3
  78. package/utilities/LightSwitch/LightSwitch.svelte +2 -2
  79. package/utilities/LightSwitch/lightswitch.js +3 -3
  80. package/utilities/Modal/Modal.svelte +5 -3
  81. package/utilities/Modal/Modal.svelte.d.ts +3 -1
  82. package/utilities/Modal/types.d.ts +5 -5
  83. package/utilities/Popup/popup.d.ts +1 -1
  84. package/utilities/Popup/popup.js +83 -28
  85. package/utilities/Popup/types.d.ts +1 -1
  86. package/utilities/Toast/Toast.svelte +3 -2
  87. package/utilities/Toast/Toast.svelte.d.ts +2 -0
  88. package/utilities/Toast/types.d.ts +1 -4
@@ -16,6 +16,6 @@ module.exports = plugin(({ addComponents }) => {
16
16
  respectImportant: true,
17
17
  respectPrefix: true
18
18
  });
19
- } catch { }
19
+ } catch {}
20
20
  }
21
21
  });
@@ -1,5 +1,5 @@
1
1
  // Design Tokens: Background
2
- // Doc: https://www.skeleton.dev/elements/tokens
2
+ // Doc: https://www.skeleton.dev/docs/tokens
3
3
 
4
4
  const settings = require('../settings.cjs');
5
5
 
@@ -1,5 +1,5 @@
1
1
  // Design Tokens: Border Radius
2
- // Doc: https://www.skeleton.dev/elements/tokens
2
+ // Doc: https://www.skeleton.dev/docs/tokens
3
3
 
4
4
  // const settings = require('../settings.cjs');
5
5
 
@@ -1,5 +1,5 @@
1
1
  // Design Tokens: Borders
2
- // Doc: https://www.skeleton.dev/elements/tokens
2
+ // Doc: https://www.skeleton.dev/docs/tokens
3
3
 
4
4
  const settings = require('../settings.cjs');
5
5
 
@@ -1,5 +1,5 @@
1
1
  // Design Tokens: SVG Fill
2
- // Doc: https://www.skeleton.dev/elements/tokens
2
+ // Doc: https://www.skeleton.dev/docs/tokens
3
3
 
4
4
  const settings = require('../settings.cjs');
5
5
 
@@ -1,5 +1,5 @@
1
1
  // Design Tokens: Rings
2
- // Doc: https://www.skeleton.dev/elements/tokens
2
+ // Doc: https://www.skeleton.dev/docs/tokens
3
3
 
4
4
  const settings = require('../settings.cjs');
5
5
 
@@ -7,7 +7,7 @@ const settings = require('../settings.cjs');
7
7
  const ringTokenTheme = {
8
8
  '--tw-ring-offset-shadow': `var(--tw-ring-inset) 0 0 0 var(--theme-border-base) var(--tw-ring-offset-color)`,
9
9
  '--tw-ring-shadow': `var(--tw-ring-inset) 0 0 0 calc(2px + var(--theme-border-base)) var(--tw-ring-color)`,
10
- 'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)`,
10
+ 'box-shadow': `var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)`
11
11
  };
12
12
  const ringOutlineShared = {
13
13
  // .ring-[1px]
@@ -21,7 +21,7 @@ const ringOutlineShared = {
21
21
  module.exports = () => {
22
22
  const classes = {
23
23
  '.ring-token': {
24
- ...ringTokenTheme,
24
+ ...ringTokenTheme
25
25
  },
26
26
  // Ring Outline (for cards)
27
27
  // Example: .ring-outline-token
@@ -1,5 +1,5 @@
1
1
  // Design Tokens: Text
2
- // Doc: https://www.skeleton.dev/elements/tokens
2
+ // Doc: https://www.skeleton.dev/docs/tokens
3
3
 
4
4
  const settings = require('../settings.cjs');
5
5
 
@@ -2,7 +2,6 @@
2
2
  /* https://github.com/skeletonlabs/skeleton/discussions/401 */
3
3
 
4
4
  /* https://fonts.google.com/specimen/Quicksand?query=Quicksand */
5
- @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
6
5
 
7
6
  /* =~= Gold Nouveau =~= */
8
7
  :root {
@@ -132,16 +131,9 @@
132
131
 
133
132
  /* Applied to body with `<body data-theme="gold-nouveau">` */
134
133
  /* Created with: https://csshero.org/mesher/ */
134
+ /* prettier-ignore */
135
135
  [data-theme='gold-nouveau'] {
136
- background: #e5dcef;
137
- /* prettier-ignore */
138
136
  background-image:
139
- radial-gradient(at 92% 96%, hsla(268,37%,46%,0.25) 0px, transparent 50%),
140
- radial-gradient(at 7% 0%, hsla(268,37%,46%,0.20) 0px, transparent 50%);
141
- }
142
- .dark [data-theme='gold-nouveau'] {
143
- /* prettier-ignore */
144
- background-image:
145
- radial-gradient(at 77% 0%, hsla(37, 81%, 56%, 0.1) 0px, transparent 50%),
146
- radial-gradient(at 7% 0%, hsla(37, 81%, 56%, 0) 0px, transparent 50%);
137
+ radial-gradient(at 0% 100%, rgba(var(--color-secondary-500) / 0.33) 0px, transparent 50%),
138
+ radial-gradient(at 98% 100%, rgba(var(--color-error-500) / 0.33) 0px, transparent 50%);
147
139
  }
@@ -1,13 +1,11 @@
1
1
  /* =~= Hamlindigo Theme - made by GitHub user @rcgy for the Skeleton community. Go watch Better Call Saul. =~= */
2
2
  /* https://github.com/skeletonlabs/skeleton/discussions/401 */
3
3
 
4
- @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800&display=swap');
5
-
6
4
  :root {
7
5
  /* =~= Hamlindigo Theme | Custom =~= */
8
6
  --theme-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
9
7
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
10
- --theme-font-family-heading: 'Playfair Display', serif;
8
+ --theme-font-family-heading: serif;
11
9
  --theme-font-color-base: 0 0 0;
12
10
  --theme-font-color-dark: 255 255 255;
13
11
  --theme-rounded-base: 2px;
@@ -1,5 +1,4 @@
1
1
  /* https://fonts.google.com/specimen/Quicksand?query=Quicksand */
2
- @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
3
2
 
4
3
  :root {
5
4
  /* =~= Theme Properties =~= */
@@ -1,11 +1,8 @@
1
1
  /* https://fonts.google.com/specimen/Space+Grotesk */
2
- @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
3
- /* https://fonts.google.com/specimen/Roboto?query=roboto */
4
- @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
5
2
 
6
3
  :root {
7
4
  /* =~= Theme Properties =~= */
8
- --theme-font-family-base: 'Roboto', sans-serif;
5
+ --theme-font-family-base: system-ui;
9
6
  --theme-font-family-heading: 'Space Grotesk', sans-serif;
10
7
  --theme-font-color-base: var(--color-primary-900);
11
8
  --theme-font-color-dark: var(--color-primary-100);
@@ -110,10 +107,10 @@
110
107
  }
111
108
 
112
109
  /* Applied to body with `<body data-theme="rocket">` */
113
- /* Generated via: https://heropatterns.com/ */
110
+ /* Created with: https://csshero.org/mesher/ */
111
+ /* prettier-ignore */
114
112
  [data-theme='rocket'] {
115
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%23d8dce2' fill-opacity='0.3' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 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117
- .dark [data-theme='rocket'] {
118
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 304 304' width='304' height='304'%3E%3Cpath fill='%233c4653' fill-opacity='0.2' d='M44.1 224a5 5 0 1 1 0 2H0v-2h44.1zm160 48a5 5 0 1 1 0 2H82v-2h122.1zm57.8-46a5 5 0 1 1 0-2H304v2h-42.1zm0 16a5 5 0 1 1 0-2H304v2h-42.1zm6.2-114a5 5 0 1 1 0 2h-86.2a5 5 0 1 1 0-2h86.2zm-256-48a5 5 0 1 1 0 2H0v-2h12.1zm185.8 34a5 5 0 1 1 0-2h86.2a5 5 0 1 1 0 2h-86.2zM258 12.1a5 5 0 1 1-2 0V0h2v12.1zm-64 208a5 5 0 1 1-2 0v-54.2a5 5 0 1 1 2 0v54.2zm48-198.2V80h62v2h-64V21.9a5 5 0 1 1 2 0zm16 16V64h46v2h-48V37.9a5 5 0 1 1 2 0zm-128 96V208h16v12.1a5 5 0 1 1-2 0V210h-16v-76.1a5 5 0 1 1 2 0zm-5.9-21.9a5 5 0 1 1 0 2H114v48H85.9a5 5 0 1 1 0-2H112v-48h12.1zm-6.2 130a5 5 0 1 1 0-2H176v-74.1a5 5 0 1 1 2 0V242h-60.1zm-16-64a5 5 0 1 1 0-2H114v48h10.1a5 5 0 1 1 0 2H112v-48h-10.1zM66 284.1a5 5 0 1 1-2 0V274H50v30h-2v-32h18v12.1zM236.1 176a5 5 0 1 1 0 2H226v94h48v32h-2v-30h-48v-98h12.1zm25.8-30a5 5 0 1 1 0-2H274v44.1a5 5 0 1 1-2 0V146h-10.1zm-64 96a5 5 0 1 1 0-2H208v-80h16v-14h-42.1a5 5 0 1 1 0-2H226v18h-16v80h-12.1zm86.2-210a5 5 0 1 1 0 2H272V0h2v32h10.1zM98 101.9V146H53.9a5 5 0 1 1 0-2H96v-42.1a5 5 0 1 1 2 0zM53.9 34a5 5 0 1 1 0-2H80V0h2v34H53.9zm60.1 3.9V66H82v64H69.9a5 5 0 1 1 0-2H80V64h32V37.9a5 5 0 1 1 2 0zM101.9 82a5 5 0 1 1 0-2H128V37.9a5 5 0 1 1 2 0V82h-28.1zm16-64a5 5 0 1 1 0-2H146v44.1a5 5 0 1 1-2 0V18h-26.1zm102.2 270a5 5 0 1 1 0 2H98v14h-2v-16h124.1zM242 149.9V160h16v34h-16v62h48v48h-2v-46h-48v-66h16v-30h-16v-12.1a5 5 0 1 1 2 0zM53.9 18a5 5 0 1 1 0-2H64V2H48V0h18v18H53.9zm112 32a5 5 0 1 1 0-2H192V0h50v2h-48v48h-28.1zm-48-48a5 5 0 0 1-9.8-2h2.07a3 3 0 1 0 5.66 0H178v34h-18V21.9a5 5 0 1 1 2 0V32h14V2h-58.1zm0 96a5 5 0 1 1 0-2H137l32-32h39V21.9a5 5 0 1 1 2 0V66h-40.17l-32 32H117.9zm28.1 90.1a5 5 0 1 1-2 0v-76.51L175.59 80H224V21.9a5 5 0 1 1 2 0V82h-49.59L146 112.41v75.69zm16 32a5 5 0 1 1-2 0v-99.51L184.59 96H300.1a5 5 0 0 1 3.9-3.9v2.07a3 3 0 0 0 0 5.66v2.07a5 5 0 0 1-3.9-3.9H185.41L162 121.41v98.69zm-144-64a5 5 0 1 1-2 0v-3.51l48-48V48h32V0h2v50H66v55.41l-48 48v2.69zM50 53.9v43.51l-48 48V208h26.1a5 5 0 1 1 0 2H0v-65.41l48-48V53.9a5 5 0 1 1 2 0zm-16 16V89.41l-34 34v-2.82l32-32V69.9a5 5 0 1 1 2 0zM12.1 32a5 5 0 1 1 0 2H9.41L0 43.41V40.6L8.59 32h3.51zm265.8 18a5 5 0 1 1 0-2h18.69l7.41-7.41v2.82L297.41 50H277.9zm-16 160a5 5 0 1 1 0-2H288v-71.41l16-16v2.82l-14 14V210h-28.1zm-208 32a5 5 0 1 1 0-2H64v-22.59L40.59 194H21.9a5 5 0 1 1 0-2H41.41L66 216.59V242H53.9zm150.2 14a5 5 0 1 1 0 2H96v-56.6L56.6 162H37.9a5 5 0 1 1 0-2h19.5L98 200.6V256h106.1zm-150.2 2a5 5 0 1 1 0-2H80v-46.59L48.59 178H21.9a5 5 0 1 1 0-2H49.41L82 208.59V258H53.9zM34 39.8v1.61L9.41 66H0v-2h8.59L32 40.59V0h2v39.8zM2 300.1a5 5 0 0 1 3.9 3.9H3.83A3 3 0 0 0 0 302.17V256h18v48h-2v-46H2v42.1zM34 241v63h-2v-62H0v-2h34v1zM17 18H0v-2h16V0h2v18h-1zm273-2h14v2h-16V0h2v16zm-32 273v15h-2v-14h-14v14h-2v-16h18v1zM0 92.1A5.02 5.02 0 0 1 6 97a5 5 0 0 1-6 4.9v-2.07a3 3 0 1 0 0-5.66V92.1zM80 272h2v32h-2v-32zm37.9 32h-2.07a3 3 0 0 0-5.66 0h-2.07a5 5 0 0 1 9.8 0zM5.9 0A5.02 5.02 0 0 1 0 5.9V3.83A3 3 0 0 0 3.83 0H5.9zm294.2 0h2.07A3 3 0 0 0 304 3.83V5.9a5 5 0 0 1-3.9-5.9zm3.9 300.1v2.07a3 3 0 0 0-1.83 1.83h-2.07a5 5 0 0 1 3.9-3.9zM97 100a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-48 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-16a3 3 0 1 0 0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3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 48a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm112 176a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm-16 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 180a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0 16a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm0-32a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM17 84a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm32 64a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm16-16a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'%3E%3C/path%3E%3C/svg%3E");
113
+ background-image:
114
+ radial-gradient(at 0% 0%, rgba(var(--color-secondary-500) / 0.33) 0px, transparent 50%),
115
+ radial-gradient(at 98% 1%, rgba(var(--color-error-500) / 0.33) 0px, transparent 50%);
119
116
  }
@@ -1,12 +1,9 @@
1
- /* https://fonts.google.com/specimen/Raleway */
2
- @import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
3
- /* https://fonts.google.com/specimen/Lato?query=lato&noto.query=Abril */
4
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
5
-
6
1
  :root {
7
2
  /* =~= Theme Styles =~= */
8
- --theme-font-family-base: 'Lato', sans-serif;
9
- --theme-font-family-heading: 'Raleway', sans-serif;
3
+ --theme-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
4
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
5
+ --theme-font-family-heading: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
6
+ Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
10
7
  --theme-font-color-base: var(--color-secondary-900);
11
8
  --theme-font-color-dark: var(--color-primary-100);
12
9
  --theme-rounded-base: 9999px;
@@ -1,5 +1,4 @@
1
- /* https://fonts.google.com/specimen/Playfair+Display?query=playfair&noto.query=Abril */
2
- @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
1
+ /* https://fonts.google.com/specimen/Playfair+Display?query=playfair */
3
2
 
4
3
  :root {
5
4
  /* =~= Theme Styles =~= */
@@ -1,7 +1,6 @@
1
1
  /* A New Years inspired theme. */
2
2
 
3
3
  /* https://fonts.google.com/specimen/Quicksand?query=Quicksand */
4
- @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
5
4
 
6
5
  :root {
7
6
  /* =~= Theme Properties =~= */
@@ -1,6 +1,3 @@
1
- /* https://fonts.google.com/specimen/Lato?query=lato&noto.query=Abril */
2
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
3
-
4
1
  :root {
5
2
  /* =~= Theme Properties =~= */
6
3
  --theme-font-family-base: system-ui;
@@ -110,20 +107,9 @@
110
107
 
111
108
  /* Applied to body with `<body data-theme="skeleton">` */
112
109
  /* Created with: https://csshero.org/mesher/ */
110
+ /* prettier-ignore */
113
111
  [data-theme='skeleton'] {
114
- /* prettier-ignore */
115
- background-image:
116
- radial-gradient(at 73% 84%, hsla(213,80%,69%,0.20) 0px, transparent 50%),
117
- radial-gradient(at 16% 79%, hsla(268,79%,73%,0.20) 0px, transparent 50%),
118
- radial-gradient(at 88% 64%, hsla(290,68%,62%,0.20) 0px, transparent 50%),
119
- radial-gradient(at 67% 14%, hsla(167,87%,76%,0.20) 0px, transparent 50%),
120
- radial-gradient(at 70% 75%, hsla(170,71%,68%,0.20) 0px, transparent 50%),
121
- radial-gradient(at 98% 62%, hsla(244,77%,60%,0.18) 0px, transparent 50%),
122
- radial-gradient(at 50% 19%, hsla(322,97%,63%,0.20) 0px, transparent 50%);
123
- }
124
- .dark [data-theme='skeleton'] {
125
- /* prettier-ignore */
126
112
  background-image:
127
- radial-gradient(at 36% 0%, hsla(240,73%,56%,0.25) 0px, transparent 50%),
128
- radial-gradient(at 71% 4%, hsla(330,78%,46%,0.25) 0px, transparent 50%);
113
+ radial-gradient(at 0% 0%, rgba(var(--color-secondary-500) / 0.33) 0px, transparent 50%),
114
+ radial-gradient(at 98% 1%, rgba(var(--color-error-500) / 0.33) 0px, transparent 50%);
129
115
  }
@@ -1,11 +1,9 @@
1
1
  /* https://fonts.google.com/specimen/Abril+Fatface?query=Abril+Fatface&noto.query=Abril */
2
- @import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
3
- /* https://fonts.google.com/noto/specimen/Noto+Sans?query=sans */
4
- @import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,400;1,100;1,200;1,300&display=swap');
5
2
 
6
3
  :root {
7
4
  /* =~= Theme Styles =~= */
8
- --theme-font-family-base: 'Noto Sans', sans-serif;
5
+ --theme-font-family-base: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
6
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
9
7
  --theme-font-family-heading: 'Abril Fatface', cursive;
10
8
  --theme-font-color-base: var(--color-primary-900);
11
9
  --theme-font-color-dark: var(--color-primary-100);
@@ -1,4 +1,4 @@
1
1
  export declare const tailwindNumbers: readonly ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
2
2
  export type TailwindNumbers = (typeof tailwindNumbers)[number];
3
- export declare const semanticNames: readonly ["primary", "secondary", "tertiary", "success", "warning"];
3
+ export declare const semanticNames: readonly ["primary", "secondary", "tertiary", "success", "warning", "error", "surface"];
4
4
  export type SemanticNames = (typeof semanticNames)[number];
package/types/tailwind.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const tailwindNumbers = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'];
2
- export const semanticNames = ['primary', 'secondary', 'tertiary', 'success', 'warning'];
2
+ export const semanticNames = ['primary', 'secondary', 'tertiary', 'success', 'warning', 'error', 'surface'];
@@ -4,25 +4,25 @@ declare const __propDef: {
4
4
  [x: string]: any;
5
5
  /** Sets a language alias for Highlight.js syntax highlighting.*/
6
6
  language?: string | undefined;
7
- /** Provide the code to render. Be mindful to escape as needed!*/
7
+ /** Provide the code snippet to render. Be mindful to escape as needed!*/
8
8
  code?: string | undefined;
9
- /** Provided classes to set the background color.*/
9
+ /** Provide classes to set the background color.*/
10
10
  background?: string | undefined;
11
11
  /** Provided classes to set the backdrop blur.*/
12
12
  blur?: string | undefined;
13
- /** Provided classes to set the text size.*/
13
+ /** Provide classes to set the text size.*/
14
14
  text?: string | undefined;
15
- /** Provided classes to set the text color.*/
15
+ /** Provide classes to set the text color.*/
16
16
  color?: string | undefined;
17
- /** Provided classes to set the border radius.*/
17
+ /** Provide classes to set the border radius.*/
18
18
  rounded?: string | undefined;
19
- /** Provided classes to set the box shadow.*/
19
+ /** Provide classes to set the box shadow.*/
20
20
  shadow?: string | undefined;
21
- /** Provided classes to set the button styles.*/
21
+ /** Provide classes to set the button styles.*/
22
22
  button?: string | undefined;
23
- /** Provided the button label text.*/
23
+ /** Provide the button label text.*/
24
24
  buttonLabel?: string | undefined;
25
- /** Provided the button label text when copied.*/
25
+ /** Provide the button label text when copied.*/
26
26
  buttonCopied?: string | undefined;
27
27
  };
28
28
  events: {
@@ -14,6 +14,7 @@ export let rounded = "";
14
14
  export let shadow = "shadow-xl";
15
15
  export let width = "";
16
16
  export let height = "";
17
+ export let zIndex = "z-40";
17
18
  export let regionBackdrop = "";
18
19
  export let regionDrawer = "";
19
20
  export let labelledby = "";
@@ -24,7 +25,7 @@ const presets = {
24
25
  left: { alignment: "justify-start", width: "w-[90%]", height: "h-full", rounded: "rounded-tr-container-token rounded-br-container-token" },
25
26
  right: { alignment: "justify-end", width: "w-[90%]", height: "h-full", rounded: "rounded-tl-container-token rounded-bl-container-token" }
26
27
  };
27
- const cBackdrop = "fixed top-0 left-0 right-0 bottom-0 z-40 flex";
28
+ const cBackdrop = "fixed top-0 left-0 right-0 bottom-0 flex";
28
29
  const cDrawer = "ox-border overflow-y-auto transition-transform";
29
30
  let elemBackdrop;
30
31
  let elemDrawer;
@@ -110,7 +111,7 @@ $:
110
111
  $:
111
112
  classesRounded = rounded ? rounded : presets[position].rounded;
112
113
  $:
113
- classesBackdrop = `${cBackdrop} ${bgBackdrop} ${padding} ${blur} ${classesPosition} ${regionBackdrop} ${$$props.class ?? ""}`;
114
+ classesBackdrop = `${cBackdrop} ${bgBackdrop} ${padding} ${blur} ${classesPosition} ${regionBackdrop} ${zIndex} ${$$props.class ?? ""}`;
114
115
  $:
115
116
  classesDrawer = `${cDrawer} ${bgDrawer} ${border} ${rounded} ${shadow} ${classesWidth} ${classesHeight} ${classesRounded} ${regionDrawer}`;
116
117
  </script>
@@ -24,9 +24,11 @@ declare const __propDef: {
24
24
  width?: string | undefined;
25
25
  /** Drawer - Provide classes to override the height.*/
26
26
  height?: string | undefined;
27
- /** Provide abitrary classes to the backdrop region.*/
27
+ /** Provide a class to override the z-index*/
28
+ zIndex?: string | undefined;
29
+ /** Provide arbitrary classes to the backdrop region.*/
28
30
  regionBackdrop?: string | undefined;
29
- /** Provide abitrary classes to the drawer region.*/
31
+ /** Provide arbitrary classes to the drawer region.*/
30
32
  regionDrawer?: string | undefined;
31
33
  /** Provide an ID of the element labeling the drawer.*/
32
34
  labelledby?: string | undefined;
@@ -2,7 +2,7 @@ export interface DrawerSettings {
2
2
  open?: boolean;
3
3
  /** A unique identifier, useful for setting contents. */
4
4
  id?: string;
5
- /** Pass abitrary information for your own persona use. */
5
+ /** Pass arbitrary information for your own persona use. */
6
6
  meta?: any;
7
7
  /** Set the anchor position.
8
8
  * @type {'left' | 'top' | 'right' | 'bottom'}
@@ -28,9 +28,9 @@ export interface DrawerSettings {
28
28
  width?: string;
29
29
  /** Drawer - Provide classes to override the height.*/
30
30
  height?: string;
31
- /** Provide abitrary classes to the backdrop region. */
31
+ /** Provide arbitrary classes to the backdrop region. */
32
32
  regionBackdrop?: string;
33
- /** Provide abitrary classes to the drawer region. */
33
+ /** Provide arbitrary classes to the drawer region. */
34
34
  regionDrawer?: string;
35
35
  /** Provide an ID of the element labeling the drawer.*/
36
36
  labelledby?: string;
@@ -4,7 +4,7 @@ export let bgDark = "bg-surface-900";
4
4
  export let fillLight = "fill-surface-50";
5
5
  export let fillDark = "fill-surface-900";
6
6
  export let width = "w-12";
7
- export let height = "w-6";
7
+ export let height = "h-6";
8
8
  export let ring = "ring-[1px] ring-surface-500/30";
9
9
  export let rounded = "rounded-token";
10
10
  const cTransition = `transition-all duration-[200ms]`;
@@ -43,7 +43,7 @@ $:
43
43
  </script>
44
44
 
45
45
  <svelte:head>
46
- {@html `<script>${setInitialClassState.toString()} setInitialClassState();</script>`}
46
+ {@html `<script>(${setInitialClassState.toString()})();</script>`}
47
47
  </svelte:head>
48
48
 
49
49
  <div
@@ -44,11 +44,11 @@ export function setModeCurrent(value) {
44
44
  export function setInitialClassState() {
45
45
  const elemHtmlClasses = document.documentElement.classList;
46
46
  // Conditions
47
- const condLocalStroageUserPrefs = localStorage.getItem('modeUserPrefers') === 'false';
48
- const condLocalStroageUserPrefsExists = !('modeUserPrefers' in localStorage);
47
+ const condLocalStorageUserPrefs = localStorage.getItem('modeUserPrefers') === 'false';
48
+ const condLocalStorageUserPrefsExists = !('modeUserPrefers' in localStorage);
49
49
  const condMatchMedia = window.matchMedia('(prefers-color-scheme: dark)').matches;
50
50
  // Add/remove `.dark` class to HTML element
51
- if (condLocalStroageUserPrefs || (condLocalStroageUserPrefsExists && condMatchMedia)) {
51
+ if (condLocalStorageUserPrefs || (condLocalStorageUserPrefsExists && condMatchMedia)) {
52
52
  elemHtmlClasses.add('dark');
53
53
  }
54
54
  else {
@@ -16,6 +16,7 @@ export let padding = "p-4";
16
16
  export let spacing = "space-y-4";
17
17
  export let rounded = "rounded-container-token";
18
18
  export let shadow = "shadow-xl";
19
+ export let zIndex = "z-[999]";
19
20
  export let buttonNeutral = "variant-ghost-surface";
20
21
  export let buttonPositive = "variant-filled";
21
22
  export let buttonTextCancel = "Cancel";
@@ -25,7 +26,7 @@ export let regionBackdrop = "bg-surface-backdrop-token";
25
26
  export let regionHeader = "text-2xl font-bold";
26
27
  export let regionBody = "max-h-[200px] overflow-hidden";
27
28
  export let regionFooter = "flex justify-end space-x-2";
28
- const cBackdrop = "fixed top-0 left-0 right-0 bottom-0 z-[999]";
29
+ const cBackdrop = "fixed top-0 left-0 right-0 bottom-0";
29
30
  const cTransitionLayer = "w-full h-full p-4 overflow-y-auto flex justify-center";
30
31
  const cModal = "block";
31
32
  const cModalImage = "w-full h-auto";
@@ -65,7 +66,8 @@ function onConfirm() {
65
66
  $modalStore[0].response(true);
66
67
  modalStore.close();
67
68
  }
68
- function onPromptSubmit() {
69
+ function onPromptSubmit(event) {
70
+ event.preventDefault();
69
71
  if ($modalStore[0].response)
70
72
  $modalStore[0].response(promptValue);
71
73
  modalStore.close();
@@ -79,7 +81,7 @@ function onKeyDown(event) {
79
81
  $:
80
82
  cPosition = $modalStore[0]?.position ?? position;
81
83
  $:
82
- classesBackdrop = `${cBackdrop} ${regionBackdrop} ${$$props.class ?? ""} ${$modalStore[0]?.backdropClasses ?? ""}`;
84
+ classesBackdrop = `${cBackdrop} ${regionBackdrop} ${zIndex} ${$$props.class ?? ""} ${$modalStore[0]?.backdropClasses ?? ""}`;
83
85
  $:
84
86
  classesTransitionLayer = `${cTransitionLayer} ${cPosition ?? ""}`;
85
87
  $:
@@ -19,7 +19,7 @@ declare const __propDef: {
19
19
  background?: string | undefined;
20
20
  /** Provide classes to style the modal width.*/
21
21
  width?: string | undefined;
22
- /** Provide classes to style the modal.*/
22
+ /** Provide classes to style the modal height.*/
23
23
  height?: string | undefined;
24
24
  /** Provide classes to style the modal padding.*/
25
25
  padding?: string | undefined;
@@ -29,6 +29,8 @@ declare const __propDef: {
29
29
  rounded?: string | undefined;
30
30
  /** Provide classes to style modal box shadow.*/
31
31
  shadow?: string | undefined;
32
+ /** Provide a class to override the z-index*/
33
+ zIndex?: string | undefined;
32
34
  /** Provide classes for neutral buttons, such as Cancel.*/
33
35
  buttonNeutral?: string | undefined;
34
36
  /** Provide classes for positive actions, such as Confirm or Submit.*/
@@ -1,7 +1,7 @@
1
1
  export interface ModalComponent {
2
2
  /** Import and provide your component reference. */
3
3
  ref: any;
4
- /** Provide a key/value pairs of component props. */
4
+ /** Provide component props as key/value pairs. */
5
5
  props?: Record<string, unknown>;
6
6
  /** Provide an HTML template literal for the default slot. */
7
7
  slot?: string;
@@ -23,11 +23,11 @@ export interface ModalSettings {
23
23
  valueAttr?: object;
24
24
  /** Provide your component reference key or object. */
25
25
  component?: ModalComponent | string;
26
- /** Provide a function. Returns the repsonse value. */
26
+ /** Provide a function. Returns the response value. */
27
27
  response?: (r: any) => void;
28
- /** Provide abitrary classes to the backdrop. */
28
+ /** Provide arbitrary classes to the backdrop. */
29
29
  backdropClasses?: string;
30
- /** Provide abitrary classes to the modal window. */
30
+ /** Provide arbitrary classes to the modal window. */
31
31
  modalClasses?: string;
32
32
  /** Override the Cancel button label. */
33
33
  buttonTextCancel?: string;
@@ -35,6 +35,6 @@ export interface ModalSettings {
35
35
  buttonTextConfirm?: string;
36
36
  /** Override the Submit button label. */
37
37
  buttonTextSubmit?: string;
38
- /** Pass abitrary data per modal instance. */
38
+ /** Pass arbitrary data per modal instance. */
39
39
  meta?: any;
40
40
  }
@@ -2,6 +2,6 @@ import { type Writable } from 'svelte/store';
2
2
  import type { PopupSettings } from './types';
3
3
  export declare const storePopup: Writable<any>;
4
4
  export declare function popup(node: HTMLElement, args: PopupSettings): {
5
- update(newArgs: any): void;
5
+ update(newArgs: PopupSettings): void;
6
6
  destroy(): void;
7
7
  } | undefined;