@monospaced/set-core 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/banner/banner.d.ts.map +1 -1
- package/dist/components/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/box/box.d.ts.map +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/details/details.d.ts.map +1 -1
- package/dist/components/dither/dither.d.ts.map +1 -1
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/expander/expander.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset.d.ts.map +1 -1
- package/dist/components/figure/figure.d.ts.map +1 -1
- package/dist/components/grid/grid.d.ts +12 -12
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/image/image.d.ts.map +1 -1
- package/dist/components/inline/inline.d.ts +2 -1
- package/dist/components/inline/inline.d.ts.map +1 -1
- package/dist/components/input/input.d.ts.map +1 -1
- package/dist/components/lightswitch/lightswitch.d.ts.map +1 -1
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/logo/logo.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/nav/nav.d.ts.map +1 -1
- package/dist/components/page/page.d.ts +14 -5
- package/dist/components/page/page.d.ts.map +1 -1
- package/dist/components/pattern/pattern.d.ts.map +1 -1
- package/dist/components/poster/poster.d.ts.map +1 -1
- package/dist/components/prose/prose.d.ts.map +1 -1
- package/dist/components/radios/radios.d.ts.map +1 -1
- package/dist/components/range/range.d.ts.map +1 -1
- package/dist/components/root/root.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/stack/stack.d.ts.map +1 -1
- package/dist/components/surface/surface.d.ts.map +1 -1
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/textarea/textarea.d.ts.map +1 -1
- package/dist/components/video/video.d.ts.map +1 -1
- package/dist/core-mnsp.css +1 -1
- package/dist/core-wrfr.css +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +223 -158
- package/dist/index.js.map +1 -1
- package/dist/spec.d.ts +7 -0
- package/dist/spec.d.ts.map +1 -1
- package/dist/test/spec.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/components/panel/panel.d.ts +0 -31
- package/dist/components/panel/panel.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -628,6 +628,7 @@ function f(e) {
|
|
|
628
628
|
}
|
|
629
629
|
var p = {
|
|
630
630
|
name: "icon",
|
|
631
|
+
category: "graphic",
|
|
631
632
|
description: "Use `icon` to render a Set icon.",
|
|
632
633
|
output: {
|
|
633
634
|
element: "svg",
|
|
@@ -855,6 +856,7 @@ function h(e = {}) {
|
|
|
855
856
|
}
|
|
856
857
|
var g = {
|
|
857
858
|
name: "spinner",
|
|
859
|
+
category: "status",
|
|
858
860
|
description: "Use `spinner` to indicate loading or in-progress state.",
|
|
859
861
|
output: {
|
|
860
862
|
element: "span",
|
|
@@ -1036,6 +1038,7 @@ function x(e, t) {
|
|
|
1036
1038
|
}
|
|
1037
1039
|
var S = {
|
|
1038
1040
|
name: "button",
|
|
1041
|
+
category: "control",
|
|
1039
1042
|
description: "Use `button` to let users trigger actions.",
|
|
1040
1043
|
output: {
|
|
1041
1044
|
element: "button",
|
|
@@ -1451,6 +1454,7 @@ function M() {
|
|
|
1451
1454
|
}
|
|
1452
1455
|
var N = {
|
|
1453
1456
|
name: "alert",
|
|
1457
|
+
category: "status",
|
|
1454
1458
|
description: "Use `alert` to surface short, important messages.",
|
|
1455
1459
|
output: {
|
|
1456
1460
|
element: C,
|
|
@@ -1705,6 +1709,7 @@ function ee(e) {
|
|
|
1705
1709
|
}
|
|
1706
1710
|
var te = {
|
|
1707
1711
|
name: "link",
|
|
1712
|
+
category: "navigation",
|
|
1708
1713
|
description: "Use `link` to navigate to another page or resource.",
|
|
1709
1714
|
output: {
|
|
1710
1715
|
element: "a",
|
|
@@ -2059,6 +2064,7 @@ function ae() {
|
|
|
2059
2064
|
}
|
|
2060
2065
|
var oe = {
|
|
2061
2066
|
name: "banner",
|
|
2067
|
+
category: "status",
|
|
2062
2068
|
description: "Use `banner` to display a prominent site-wide message.",
|
|
2063
2069
|
output: {
|
|
2064
2070
|
element: I,
|
|
@@ -2402,6 +2408,7 @@ function le() {
|
|
|
2402
2408
|
}
|
|
2403
2409
|
var ue = {
|
|
2404
2410
|
name: "image",
|
|
2411
|
+
category: "graphic",
|
|
2405
2412
|
description: "Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",
|
|
2406
2413
|
output: {
|
|
2407
2414
|
element: B,
|
|
@@ -2858,6 +2865,7 @@ function ve() {
|
|
|
2858
2865
|
}
|
|
2859
2866
|
var ye = {
|
|
2860
2867
|
name: "lightswitch",
|
|
2868
|
+
category: "control",
|
|
2861
2869
|
description: "Use `lightswitch` to let users toggle between light and dark themes.",
|
|
2862
2870
|
output: {
|
|
2863
2871
|
element: V,
|
|
@@ -3134,6 +3142,7 @@ function Ce() {
|
|
|
3134
3142
|
}
|
|
3135
3143
|
var we = {
|
|
3136
3144
|
name: "menu",
|
|
3145
|
+
category: "control",
|
|
3137
3146
|
description: "Use `menu` to show a list of actions from a trigger button.",
|
|
3138
3147
|
output: {
|
|
3139
3148
|
element: W,
|
|
@@ -3366,6 +3375,7 @@ function De(e = {}) {
|
|
|
3366
3375
|
}
|
|
3367
3376
|
var Oe = {
|
|
3368
3377
|
name: "expander",
|
|
3378
|
+
category: "control",
|
|
3369
3379
|
description: "Use `expander` as a toggle for disclosure regions such as menus.",
|
|
3370
3380
|
output: {
|
|
3371
3381
|
element: "button",
|
|
@@ -3589,6 +3599,7 @@ function Me() {
|
|
|
3589
3599
|
}
|
|
3590
3600
|
var Ne = {
|
|
3591
3601
|
name: "nav",
|
|
3602
|
+
category: "navigation",
|
|
3592
3603
|
description: "Use `nav` to render a primary navigation list.",
|
|
3593
3604
|
output: {
|
|
3594
3605
|
element: G,
|
|
@@ -3635,7 +3646,7 @@ var Ne = {
|
|
|
3635
3646
|
},
|
|
3636
3647
|
expanderPosition: {
|
|
3637
3648
|
default: "start",
|
|
3638
|
-
description: "
|
|
3649
|
+
description: "Which edge of the row the nav sits at while it is collapsed: `start` when it is the first item in its row, `end` when it is the last. Ignored unless `collapsible` is set.",
|
|
3639
3650
|
type: {
|
|
3640
3651
|
kind: "enum",
|
|
3641
3652
|
values: ["start", "end"]
|
|
@@ -3646,7 +3657,7 @@ var Ne = {
|
|
|
3646
3657
|
type: { kind: "string" }
|
|
3647
3658
|
},
|
|
3648
3659
|
collapsible: {
|
|
3649
|
-
description: "When to collapse the nav behind an expander.",
|
|
3660
|
+
description: "When to collapse the nav behind an expander. While it is collapsed, the nav must be the first or last item in its row, so the expander sits at the row's edge. With `belowTablet`, this applies only below tablet: above it, the nav can sit anywhere in the row. If the two positions differ, wrap the nav and move the wrapper with CSS `order` below the tablet breakpoint.",
|
|
3650
3661
|
type: {
|
|
3651
3662
|
kind: "enum",
|
|
3652
3663
|
values: ["always", "belowTablet"]
|
|
@@ -3884,6 +3895,7 @@ function Ie() {
|
|
|
3884
3895
|
}
|
|
3885
3896
|
var Le = {
|
|
3886
3897
|
name: "range",
|
|
3898
|
+
category: "control",
|
|
3887
3899
|
description: "Use `range` to let users pick a numeric value along a scale.",
|
|
3888
3900
|
output: {
|
|
3889
3901
|
element: K,
|
|
@@ -4349,6 +4361,7 @@ function Ue() {
|
|
|
4349
4361
|
}
|
|
4350
4362
|
var We = {
|
|
4351
4363
|
name: "sidebar",
|
|
4364
|
+
category: "structure",
|
|
4352
4365
|
description: "Use `sidebar` for a side panel alongside main content.",
|
|
4353
4366
|
output: {
|
|
4354
4367
|
element: q,
|
|
@@ -4584,6 +4597,7 @@ function Je() {
|
|
|
4584
4597
|
}
|
|
4585
4598
|
var Ye = {
|
|
4586
4599
|
name: "video",
|
|
4600
|
+
category: "graphic",
|
|
4587
4601
|
description: "Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",
|
|
4588
4602
|
output: {
|
|
4589
4603
|
element: Y,
|
|
@@ -4925,6 +4939,7 @@ function ot(e) {
|
|
|
4925
4939
|
}
|
|
4926
4940
|
var st = {
|
|
4927
4941
|
name: "avatar",
|
|
4942
|
+
category: "graphic",
|
|
4928
4943
|
description: "Use `avatar` to visually represent a person, team, or entity.",
|
|
4929
4944
|
output: {
|
|
4930
4945
|
element: "span",
|
|
@@ -4955,7 +4970,7 @@ var st = {
|
|
|
4955
4970
|
}
|
|
4956
4971
|
},
|
|
4957
4972
|
color: {
|
|
4958
|
-
description: "Background color swatch.
|
|
4973
|
+
description: "Background color swatch. Leave unset for a named person, team or organization: the color derives from the name, so each one is distinguishable. `neutral` is the fallback for an avatar with no name.",
|
|
4959
4974
|
type: {
|
|
4960
4975
|
kind: "enum",
|
|
4961
4976
|
values: [
|
|
@@ -5104,6 +5119,7 @@ function lt(e) {
|
|
|
5104
5119
|
}
|
|
5105
5120
|
var ut = {
|
|
5106
5121
|
name: "badge",
|
|
5122
|
+
category: "status",
|
|
5107
5123
|
description: "Use `badge` to annotate content with a short label.",
|
|
5108
5124
|
output: {
|
|
5109
5125
|
element: "span",
|
|
@@ -5222,6 +5238,7 @@ function dt(e) {
|
|
|
5222
5238
|
}
|
|
5223
5239
|
var ft = {
|
|
5224
5240
|
name: "text",
|
|
5241
|
+
category: "typographic",
|
|
5225
5242
|
description: "Use `text` for inline or paragraph body copy.",
|
|
5226
5243
|
output: {
|
|
5227
5244
|
element: {
|
|
@@ -5455,6 +5472,7 @@ function mt(e) {
|
|
|
5455
5472
|
}
|
|
5456
5473
|
var ht = {
|
|
5457
5474
|
name: "blockquote",
|
|
5475
|
+
category: "typographic",
|
|
5458
5476
|
description: "Use `blockquote` to display a quote with attribution.",
|
|
5459
5477
|
output: {
|
|
5460
5478
|
element: "figure",
|
|
@@ -5570,6 +5588,7 @@ function _t(e) {
|
|
|
5570
5588
|
}
|
|
5571
5589
|
var vt = {
|
|
5572
5590
|
name: "box",
|
|
5591
|
+
category: "layout",
|
|
5573
5592
|
description: "Use `box` to inset content.",
|
|
5574
5593
|
output: {
|
|
5575
5594
|
element: "div",
|
|
@@ -5829,6 +5848,7 @@ function bt(e) {
|
|
|
5829
5848
|
}
|
|
5830
5849
|
var xt = {
|
|
5831
5850
|
name: "card",
|
|
5851
|
+
category: "structure",
|
|
5832
5852
|
description: "Use `card` to display a summary for a single topic.",
|
|
5833
5853
|
output: {
|
|
5834
5854
|
element: "div",
|
|
@@ -5981,6 +6001,7 @@ function Ct(e) {
|
|
|
5981
6001
|
}
|
|
5982
6002
|
var wt = {
|
|
5983
6003
|
name: "checkbox",
|
|
6004
|
+
category: "control",
|
|
5984
6005
|
description: "Use `checkbox` to let users toggle a single option on or off.",
|
|
5985
6006
|
output: {
|
|
5986
6007
|
element: "div",
|
|
@@ -6211,6 +6232,7 @@ function Et(e) {
|
|
|
6211
6232
|
}
|
|
6212
6233
|
var Dt = {
|
|
6213
6234
|
name: "container",
|
|
6235
|
+
category: "layout",
|
|
6214
6236
|
description: "Use `container` to wrap page-level content.",
|
|
6215
6237
|
output: {
|
|
6216
6238
|
element: "div",
|
|
@@ -6346,6 +6368,7 @@ function kt(e) {
|
|
|
6346
6368
|
}
|
|
6347
6369
|
var At = {
|
|
6348
6370
|
name: "details",
|
|
6371
|
+
category: "structure",
|
|
6349
6372
|
description: "Use `details` to let users expand and collapse a section of content.",
|
|
6350
6373
|
output: {
|
|
6351
6374
|
element: "details",
|
|
@@ -6479,6 +6502,7 @@ function Pt(e = {}) {
|
|
|
6479
6502
|
}
|
|
6480
6503
|
var Ft = {
|
|
6481
6504
|
name: "dither",
|
|
6505
|
+
category: "graphic",
|
|
6482
6506
|
description: "Use `dither` to render an ordered dither as a graphic or behind content.",
|
|
6483
6507
|
output: {
|
|
6484
6508
|
element: "div",
|
|
@@ -6677,6 +6701,7 @@ function Lt(e = {}) {
|
|
|
6677
6701
|
}
|
|
6678
6702
|
var Rt = {
|
|
6679
6703
|
name: "divider",
|
|
6704
|
+
category: "layout",
|
|
6680
6705
|
description: "Use `divider` to separate sections with a rule.",
|
|
6681
6706
|
output: {
|
|
6682
6707
|
element: {
|
|
@@ -6818,6 +6843,7 @@ function Bt(e) {
|
|
|
6818
6843
|
}
|
|
6819
6844
|
var Vt = {
|
|
6820
6845
|
name: "fieldset",
|
|
6846
|
+
category: "control",
|
|
6821
6847
|
description: "Use `fieldset` to group related form controls under a legend.",
|
|
6822
6848
|
output: {
|
|
6823
6849
|
element: "fieldset",
|
|
@@ -6972,6 +6998,7 @@ function Ut(e) {
|
|
|
6972
6998
|
}
|
|
6973
6999
|
var Wt = {
|
|
6974
7000
|
name: "figure",
|
|
7001
|
+
category: "structure",
|
|
6975
7002
|
description: "Use `figure` to present media with a caption.",
|
|
6976
7003
|
output: {
|
|
6977
7004
|
element: "figure",
|
|
@@ -7131,7 +7158,8 @@ function Jt(e) {
|
|
|
7131
7158
|
}
|
|
7132
7159
|
var Yt = {
|
|
7133
7160
|
name: "grid",
|
|
7134
|
-
|
|
7161
|
+
category: "layout",
|
|
7162
|
+
description: "Use `grid` to lay out content in a 12-column grid that responds to its container.",
|
|
7135
7163
|
output: {
|
|
7136
7164
|
element: "div",
|
|
7137
7165
|
class: "set-grid"
|
|
@@ -7225,6 +7253,7 @@ var Yt = {
|
|
|
7225
7253
|
integer: !0
|
|
7226
7254
|
}, Xt = {
|
|
7227
7255
|
name: "grid-item",
|
|
7256
|
+
category: "layout",
|
|
7228
7257
|
description: "Use `grid-item` to place content within a `grid` layout.",
|
|
7229
7258
|
output: {
|
|
7230
7259
|
element: "div",
|
|
@@ -7262,11 +7291,11 @@ var Yt = {
|
|
|
7262
7291
|
}
|
|
7263
7292
|
},
|
|
7264
7293
|
colSpan: {
|
|
7265
|
-
description: "Columns spanned
|
|
7294
|
+
description: "Columns spanned when the grid's container is at its default width.",
|
|
7266
7295
|
type: $
|
|
7267
7296
|
},
|
|
7268
7297
|
colStart: {
|
|
7269
|
-
description: "Starting column
|
|
7298
|
+
description: "Starting column when the grid's container is at its default width.",
|
|
7270
7299
|
type: $
|
|
7271
7300
|
},
|
|
7272
7301
|
id: {
|
|
@@ -7274,43 +7303,43 @@ var Yt = {
|
|
|
7274
7303
|
type: { kind: "string" }
|
|
7275
7304
|
},
|
|
7276
7305
|
rowSpan: {
|
|
7277
|
-
description: "Rows spanned
|
|
7306
|
+
description: "Rows spanned when the grid's container is at its default width.",
|
|
7278
7307
|
type: $
|
|
7279
7308
|
},
|
|
7280
7309
|
rowSpanNarrow: {
|
|
7281
|
-
description: "Rows spanned
|
|
7310
|
+
description: "Rows spanned when the grid's container is narrow.",
|
|
7282
7311
|
type: $
|
|
7283
7312
|
},
|
|
7284
7313
|
rowSpanWide: {
|
|
7285
|
-
description: "Rows spanned
|
|
7314
|
+
description: "Rows spanned when the grid's container is wide.",
|
|
7286
7315
|
type: $
|
|
7287
7316
|
},
|
|
7288
7317
|
rowStart: {
|
|
7289
|
-
description: "Starting row
|
|
7318
|
+
description: "Starting row when the grid's container is at its default width.",
|
|
7290
7319
|
type: $
|
|
7291
7320
|
},
|
|
7292
7321
|
rowStartNarrow: {
|
|
7293
|
-
description: "Starting row
|
|
7322
|
+
description: "Starting row when the grid's container is narrow.",
|
|
7294
7323
|
type: $
|
|
7295
7324
|
},
|
|
7296
7325
|
rowStartWide: {
|
|
7297
|
-
description: "Starting row
|
|
7326
|
+
description: "Starting row when the grid's container is wide.",
|
|
7298
7327
|
type: $
|
|
7299
7328
|
},
|
|
7300
7329
|
colSpanNarrow: {
|
|
7301
|
-
description: "Columns spanned
|
|
7330
|
+
description: "Columns spanned when the grid's container is narrow.",
|
|
7302
7331
|
type: $
|
|
7303
7332
|
},
|
|
7304
7333
|
colStartNarrow: {
|
|
7305
|
-
description: "Starting column
|
|
7334
|
+
description: "Starting column when the grid's container is narrow.",
|
|
7306
7335
|
type: $
|
|
7307
7336
|
},
|
|
7308
7337
|
colSpanWide: {
|
|
7309
|
-
description: "Columns spanned
|
|
7338
|
+
description: "Columns spanned when the grid's container is wide.",
|
|
7310
7339
|
type: $
|
|
7311
7340
|
},
|
|
7312
7341
|
colStartWide: {
|
|
7313
|
-
description: "Starting column
|
|
7342
|
+
description: "Starting column when the grid's container is wide.",
|
|
7314
7343
|
type: $
|
|
7315
7344
|
}
|
|
7316
7345
|
},
|
|
@@ -7524,6 +7553,7 @@ function Qt(e) {
|
|
|
7524
7553
|
}
|
|
7525
7554
|
var $t = {
|
|
7526
7555
|
name: "heading",
|
|
7556
|
+
category: "typographic",
|
|
7527
7557
|
description: "Use `heading` to render heading text with consistent type.",
|
|
7528
7558
|
output: {
|
|
7529
7559
|
element: {
|
|
@@ -7708,6 +7738,7 @@ function tn(e) {
|
|
|
7708
7738
|
}
|
|
7709
7739
|
var nn = {
|
|
7710
7740
|
name: "inline",
|
|
7741
|
+
category: "layout",
|
|
7711
7742
|
description: "Use `inline` to lay out content in a horizontal row.",
|
|
7712
7743
|
output: {
|
|
7713
7744
|
element: {
|
|
@@ -7735,13 +7766,14 @@ var nn = {
|
|
|
7735
7766
|
},
|
|
7736
7767
|
align: {
|
|
7737
7768
|
default: "center",
|
|
7738
|
-
description: "Aligns items on the cross axis.",
|
|
7769
|
+
description: "Aligns items on the cross axis. `baseline` lines up the first line of text in each item, for a row of different type sizes.",
|
|
7739
7770
|
type: {
|
|
7740
7771
|
kind: "enum",
|
|
7741
7772
|
values: [
|
|
7742
7773
|
"start",
|
|
7743
7774
|
"center",
|
|
7744
|
-
"end"
|
|
7775
|
+
"end",
|
|
7776
|
+
"baseline"
|
|
7745
7777
|
]
|
|
7746
7778
|
}
|
|
7747
7779
|
},
|
|
@@ -7793,7 +7825,11 @@ var nn = {
|
|
|
7793
7825
|
condition: {
|
|
7794
7826
|
kind: "when-in",
|
|
7795
7827
|
prop: "align",
|
|
7796
|
-
values: [
|
|
7828
|
+
values: [
|
|
7829
|
+
"start",
|
|
7830
|
+
"end",
|
|
7831
|
+
"baseline"
|
|
7832
|
+
]
|
|
7797
7833
|
},
|
|
7798
7834
|
value: {
|
|
7799
7835
|
kind: "prop",
|
|
@@ -7912,6 +7948,7 @@ function an(e) {
|
|
|
7912
7948
|
}
|
|
7913
7949
|
var on = {
|
|
7914
7950
|
name: "input",
|
|
7951
|
+
category: "control",
|
|
7915
7952
|
description: "Use `input` to collect a single line of text from users.",
|
|
7916
7953
|
output: {
|
|
7917
7954
|
element: "div",
|
|
@@ -8356,6 +8393,7 @@ function vn(e) {
|
|
|
8356
8393
|
}
|
|
8357
8394
|
var yn = {
|
|
8358
8395
|
name: "logo",
|
|
8396
|
+
category: "graphic",
|
|
8359
8397
|
description: "Use `logo` to display the brand mark.",
|
|
8360
8398
|
output: {
|
|
8361
8399
|
element: "div",
|
|
@@ -8487,20 +8525,25 @@ var yn = {
|
|
|
8487
8525
|
] }
|
|
8488
8526
|
};
|
|
8489
8527
|
// src/components/page/page.ts
|
|
8490
|
-
function bn({ banner: e, centerMain: t, children: n, footer: r, header: i,
|
|
8491
|
-
let
|
|
8492
|
-
return e &&
|
|
8528
|
+
function bn({ banner: e, centerMain: t, children: n, footer: r, header: i, headerBackground: o = "default", headerBorder: s, headerContentTheme: c, headerSize: l = "md", headerSticky: u, headerSurface: d, id: f }) {
|
|
8529
|
+
let p = a(f), m = c ? d ?? "default" : d, h = [];
|
|
8530
|
+
return e && h.push({
|
|
8493
8531
|
kind: "raw",
|
|
8494
8532
|
html: e
|
|
8495
|
-
}),
|
|
8533
|
+
}), h.push({
|
|
8496
8534
|
kind: "element",
|
|
8497
8535
|
tag: "header",
|
|
8498
|
-
attrs: {
|
|
8536
|
+
attrs: {
|
|
8537
|
+
class: "header",
|
|
8538
|
+
"data-background": o === "default" ? void 0 : o,
|
|
8539
|
+
"data-set-content-theme": c,
|
|
8540
|
+
"data-set-surface": m
|
|
8541
|
+
},
|
|
8499
8542
|
children: [{
|
|
8500
8543
|
kind: "raw",
|
|
8501
8544
|
html: i
|
|
8502
8545
|
}]
|
|
8503
|
-
}),
|
|
8546
|
+
}), h.push({
|
|
8504
8547
|
kind: "element",
|
|
8505
8548
|
tag: "main",
|
|
8506
8549
|
attrs: { class: "main" },
|
|
@@ -8508,7 +8551,7 @@ function bn({ banner: e, centerMain: t, children: n, footer: r, header: i, heade
|
|
|
8508
8551
|
kind: "raw",
|
|
8509
8552
|
html: n
|
|
8510
8553
|
}] : []
|
|
8511
|
-
}),
|
|
8554
|
+
}), h.push({
|
|
8512
8555
|
kind: "element",
|
|
8513
8556
|
tag: "footer",
|
|
8514
8557
|
attrs: { class: "footer" },
|
|
@@ -8522,12 +8565,12 @@ function bn({ banner: e, centerMain: t, children: n, footer: r, header: i, heade
|
|
|
8522
8565
|
attrs: {
|
|
8523
8566
|
class: "set-page",
|
|
8524
8567
|
"data-center-main": t,
|
|
8525
|
-
"data-header-border":
|
|
8526
|
-
"data-header-size":
|
|
8527
|
-
"data-sticky
|
|
8528
|
-
id:
|
|
8568
|
+
"data-header-border": s,
|
|
8569
|
+
"data-header-size": l,
|
|
8570
|
+
"data-header-sticky": u,
|
|
8571
|
+
id: p
|
|
8529
8572
|
},
|
|
8530
|
-
children:
|
|
8573
|
+
children: h
|
|
8531
8574
|
};
|
|
8532
8575
|
}
|
|
8533
8576
|
function xn(e) {
|
|
@@ -8535,6 +8578,7 @@ function xn(e) {
|
|
|
8535
8578
|
}
|
|
8536
8579
|
var Sn = {
|
|
8537
8580
|
name: "page",
|
|
8581
|
+
category: "structure",
|
|
8538
8582
|
description: "Use `page` as the primary layout for header, main, and footer regions.",
|
|
8539
8583
|
output: {
|
|
8540
8584
|
element: "div",
|
|
@@ -8576,20 +8620,39 @@ var Sn = {
|
|
|
8576
8620
|
type: { kind: "boolean" }
|
|
8577
8621
|
},
|
|
8578
8622
|
header: {
|
|
8579
|
-
description: "Header content.",
|
|
8623
|
+
description: "Header content. The header centres it vertically in its reserved block size.",
|
|
8580
8624
|
required: !0,
|
|
8581
8625
|
type: { kind: "html" }
|
|
8582
8626
|
},
|
|
8627
|
+
headerBackground: {
|
|
8628
|
+
default: "default",
|
|
8629
|
+
description: "Background of the header itself, so a sticky header is opaque over scrolled content. `'transparent'` for a see-through header on purpose, such as over a hero.",
|
|
8630
|
+
type: {
|
|
8631
|
+
kind: "enum",
|
|
8632
|
+
values: [
|
|
8633
|
+
"default",
|
|
8634
|
+
"panel",
|
|
8635
|
+
"transparent"
|
|
8636
|
+
]
|
|
8637
|
+
}
|
|
8638
|
+
},
|
|
8583
8639
|
headerBorder: {
|
|
8584
|
-
description: "Bottom border on the header. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",
|
|
8640
|
+
description: "Bottom border on the header, in the header's own surface. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",
|
|
8585
8641
|
type: {
|
|
8586
8642
|
kind: "enum",
|
|
8587
8643
|
values: ["always", "scroll"]
|
|
8588
8644
|
}
|
|
8589
8645
|
},
|
|
8646
|
+
headerContentTheme: {
|
|
8647
|
+
description: "Absolute theme lock for content rendered inside the header.",
|
|
8648
|
+
type: {
|
|
8649
|
+
kind: "enum",
|
|
8650
|
+
values: ["light", "dark"]
|
|
8651
|
+
}
|
|
8652
|
+
},
|
|
8590
8653
|
headerSize: {
|
|
8591
8654
|
default: "md",
|
|
8592
|
-
description: "Reserves a minimum block size on the header. `--set-page-header-block-size`
|
|
8655
|
+
description: "Reserves a minimum block size on the header. `--set-layout-page-header-block-size-current` holds the size in effect, for anything that must line up with it, such as a sticky element below the header.",
|
|
8593
8656
|
type: {
|
|
8594
8657
|
kind: "enum",
|
|
8595
8658
|
values: [
|
|
@@ -8599,17 +8662,30 @@ var Sn = {
|
|
|
8599
8662
|
]
|
|
8600
8663
|
}
|
|
8601
8664
|
},
|
|
8602
|
-
|
|
8603
|
-
description: "DOM id.",
|
|
8604
|
-
type: { kind: "string" }
|
|
8605
|
-
},
|
|
8606
|
-
stickyHeader: {
|
|
8665
|
+
headerSticky: {
|
|
8607
8666
|
description: "When the header stays stuck to the top of the viewport.",
|
|
8608
8667
|
type: {
|
|
8609
8668
|
kind: "enum",
|
|
8610
8669
|
values: ["always", "belowNotebook"]
|
|
8611
8670
|
}
|
|
8612
8671
|
},
|
|
8672
|
+
headerSurface: {
|
|
8673
|
+
description: "Surface context of the header. Inherits the surrounding context when omitted.",
|
|
8674
|
+
type: {
|
|
8675
|
+
kind: "enum",
|
|
8676
|
+
values: [
|
|
8677
|
+
"default",
|
|
8678
|
+
"brandSubtle",
|
|
8679
|
+
"brand",
|
|
8680
|
+
"brandSecondary",
|
|
8681
|
+
"brandTertiary"
|
|
8682
|
+
]
|
|
8683
|
+
}
|
|
8684
|
+
},
|
|
8685
|
+
id: {
|
|
8686
|
+
description: "DOM id.",
|
|
8687
|
+
type: { kind: "string" }
|
|
8688
|
+
},
|
|
8613
8689
|
footer: {
|
|
8614
8690
|
description: "Footer content.",
|
|
8615
8691
|
required: !0,
|
|
@@ -8649,113 +8725,84 @@ var Sn = {
|
|
|
8649
8725
|
},
|
|
8650
8726
|
{
|
|
8651
8727
|
target: { on: "host" },
|
|
8652
|
-
attribute: "data-sticky
|
|
8728
|
+
attribute: "data-header-sticky",
|
|
8653
8729
|
condition: {
|
|
8654
8730
|
kind: "when-provided",
|
|
8655
|
-
prop: "
|
|
8731
|
+
prop: "headerSticky"
|
|
8656
8732
|
},
|
|
8657
8733
|
value: {
|
|
8658
8734
|
kind: "prop",
|
|
8659
|
-
prop: "
|
|
8735
|
+
prop: "headerSticky"
|
|
8660
8736
|
}
|
|
8661
8737
|
},
|
|
8662
8738
|
{
|
|
8663
|
-
target: {
|
|
8664
|
-
|
|
8739
|
+
target: {
|
|
8740
|
+
on: "descendant",
|
|
8741
|
+
selector: ":scope > .header"
|
|
8742
|
+
},
|
|
8743
|
+
attribute: "data-background",
|
|
8665
8744
|
condition: {
|
|
8666
|
-
kind: "when-
|
|
8667
|
-
prop: "
|
|
8745
|
+
kind: "when-in",
|
|
8746
|
+
prop: "headerBackground",
|
|
8747
|
+
values: ["panel", "transparent"]
|
|
8668
8748
|
},
|
|
8669
8749
|
value: {
|
|
8670
8750
|
kind: "prop",
|
|
8671
|
-
prop: "
|
|
8751
|
+
prop: "headerBackground"
|
|
8672
8752
|
}
|
|
8673
|
-
}
|
|
8674
|
-
] }
|
|
8675
|
-
};
|
|
8676
|
-
// src/components/panel/panel.ts
|
|
8677
|
-
function Cn({ children: e, id: t, padding: n = "md", surface: r }) {
|
|
8678
|
-
return {
|
|
8679
|
-
kind: "element",
|
|
8680
|
-
tag: "div",
|
|
8681
|
-
attrs: {
|
|
8682
|
-
class: "set-panel",
|
|
8683
|
-
"data-padding": n,
|
|
8684
|
-
"data-set-surface": r,
|
|
8685
|
-
id: a(t)
|
|
8686
|
-
},
|
|
8687
|
-
children: e ? [{
|
|
8688
|
-
kind: "raw",
|
|
8689
|
-
html: e
|
|
8690
|
-
}] : []
|
|
8691
|
-
};
|
|
8692
|
-
}
|
|
8693
|
-
function wn(e) {
|
|
8694
|
-
return r(Cn(e));
|
|
8695
|
-
}
|
|
8696
|
-
var Tn = {
|
|
8697
|
-
name: "panel",
|
|
8698
|
-
description: "Use `panel` to group related content in a contained region.",
|
|
8699
|
-
output: {
|
|
8700
|
-
element: "div",
|
|
8701
|
-
class: "set-panel"
|
|
8702
|
-
},
|
|
8703
|
-
content: {
|
|
8704
|
-
kind: "html",
|
|
8705
|
-
prop: "children"
|
|
8706
|
-
},
|
|
8707
|
-
props: {
|
|
8708
|
-
children: {
|
|
8709
|
-
description: "Content rendered inside the panel.",
|
|
8710
|
-
type: { kind: "html" }
|
|
8711
|
-
},
|
|
8712
|
-
id: {
|
|
8713
|
-
description: "DOM id.",
|
|
8714
|
-
type: { kind: "string" }
|
|
8715
8753
|
},
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8754
|
+
{
|
|
8755
|
+
target: {
|
|
8756
|
+
on: "descendant",
|
|
8757
|
+
selector: ":scope > .header"
|
|
8758
|
+
},
|
|
8759
|
+
attribute: "data-set-content-theme",
|
|
8760
|
+
condition: {
|
|
8761
|
+
kind: "when-provided",
|
|
8762
|
+
prop: "headerContentTheme"
|
|
8763
|
+
},
|
|
8764
|
+
value: {
|
|
8765
|
+
kind: "prop",
|
|
8766
|
+
prop: "headerContentTheme"
|
|
8728
8767
|
}
|
|
8729
8768
|
},
|
|
8730
|
-
surface: {
|
|
8731
|
-
description: "Surface context.",
|
|
8732
|
-
type: {
|
|
8733
|
-
kind: "enum",
|
|
8734
|
-
values: ["default", "brandSubtle"]
|
|
8735
|
-
}
|
|
8736
|
-
}
|
|
8737
|
-
},
|
|
8738
|
-
events: {},
|
|
8739
|
-
rules: { attributes: [
|
|
8740
8769
|
{
|
|
8741
|
-
target: {
|
|
8742
|
-
|
|
8743
|
-
|
|
8770
|
+
target: {
|
|
8771
|
+
on: "descendant",
|
|
8772
|
+
selector: ":scope > .header"
|
|
8773
|
+
},
|
|
8774
|
+
attribute: "data-set-surface",
|
|
8775
|
+
condition: {
|
|
8776
|
+
kind: "all",
|
|
8777
|
+
of: [{
|
|
8778
|
+
kind: "when-provided",
|
|
8779
|
+
prop: "headerContentTheme"
|
|
8780
|
+
}, {
|
|
8781
|
+
kind: "not",
|
|
8782
|
+
of: {
|
|
8783
|
+
kind: "when-provided",
|
|
8784
|
+
prop: "headerSurface"
|
|
8785
|
+
}
|
|
8786
|
+
}]
|
|
8787
|
+
},
|
|
8744
8788
|
value: {
|
|
8745
|
-
kind: "
|
|
8746
|
-
|
|
8789
|
+
kind: "literal",
|
|
8790
|
+
text: "default"
|
|
8747
8791
|
}
|
|
8748
8792
|
},
|
|
8749
8793
|
{
|
|
8750
|
-
target: {
|
|
8794
|
+
target: {
|
|
8795
|
+
on: "descendant",
|
|
8796
|
+
selector: ":scope > .header"
|
|
8797
|
+
},
|
|
8751
8798
|
attribute: "data-set-surface",
|
|
8752
8799
|
condition: {
|
|
8753
8800
|
kind: "when-provided",
|
|
8754
|
-
prop: "
|
|
8801
|
+
prop: "headerSurface"
|
|
8755
8802
|
},
|
|
8756
8803
|
value: {
|
|
8757
8804
|
kind: "prop",
|
|
8758
|
-
prop: "
|
|
8805
|
+
prop: "headerSurface"
|
|
8759
8806
|
}
|
|
8760
8807
|
},
|
|
8761
8808
|
{
|
|
@@ -8773,7 +8820,7 @@ var Tn = {
|
|
|
8773
8820
|
] }
|
|
8774
8821
|
};
|
|
8775
8822
|
// src/components/pattern/pattern.ts
|
|
8776
|
-
function
|
|
8823
|
+
function Cn({ aspectRatio: e, blockSize: t, cell: n = "md", children: r, inlineSize: i, id: o, tone: s = "default", variant: c = "tile" } = {}) {
|
|
8777
8824
|
let l = a(o), u = [];
|
|
8778
8825
|
return t && u.push(`--set-pattern-block-size: ${t / 16}rem`), i && u.push(`--set-pattern-inline-size: ${i / 16}rem`), {
|
|
8779
8826
|
kind: "element",
|
|
@@ -8795,11 +8842,12 @@ function En({ aspectRatio: e, blockSize: t, cell: n = "md", children: r, inlineS
|
|
|
8795
8842
|
}] : []
|
|
8796
8843
|
};
|
|
8797
8844
|
}
|
|
8798
|
-
function
|
|
8799
|
-
return r(
|
|
8845
|
+
function wn(e = {}) {
|
|
8846
|
+
return r(Cn(e));
|
|
8800
8847
|
}
|
|
8801
|
-
var
|
|
8848
|
+
var Tn = {
|
|
8802
8849
|
name: "pattern",
|
|
8850
|
+
category: "graphic",
|
|
8803
8851
|
description: "Use `pattern` to render a repeating brand tile as a graphic or behind content.",
|
|
8804
8852
|
output: {
|
|
8805
8853
|
element: "div",
|
|
@@ -8967,7 +9015,7 @@ var On = {
|
|
|
8967
9015
|
] }
|
|
8968
9016
|
};
|
|
8969
9017
|
// src/components/poster/poster.ts
|
|
8970
|
-
function
|
|
9018
|
+
function En(e) {
|
|
8971
9019
|
return ce({
|
|
8972
9020
|
...e,
|
|
8973
9021
|
alt: "",
|
|
@@ -8975,7 +9023,7 @@ function kn(e) {
|
|
|
8975
9023
|
priority: !0
|
|
8976
9024
|
});
|
|
8977
9025
|
}
|
|
8978
|
-
function
|
|
9026
|
+
function Dn({ children: e, contentTheme: t, id: n, media: r, surface: i }) {
|
|
8979
9027
|
let o = a(n), s = t ? i ?? "default" : i, c = [{
|
|
8980
9028
|
kind: "element",
|
|
8981
9029
|
tag: "div",
|
|
@@ -9005,11 +9053,12 @@ function An({ children: e, contentTheme: t, id: n, media: r, surface: i }) {
|
|
|
9005
9053
|
children: c
|
|
9006
9054
|
};
|
|
9007
9055
|
}
|
|
9008
|
-
function
|
|
9009
|
-
return r(
|
|
9056
|
+
function On(e) {
|
|
9057
|
+
return r(Dn(e));
|
|
9010
9058
|
}
|
|
9011
|
-
var
|
|
9059
|
+
var kn = {
|
|
9012
9060
|
name: "poster",
|
|
9061
|
+
category: "structure",
|
|
9013
9062
|
description: "Use `poster` to layer content over background media.",
|
|
9014
9063
|
output: {
|
|
9015
9064
|
element: "div",
|
|
@@ -9123,7 +9172,7 @@ var Mn = {
|
|
|
9123
9172
|
] }
|
|
9124
9173
|
};
|
|
9125
9174
|
// src/components/prose/prose.ts
|
|
9126
|
-
function
|
|
9175
|
+
function An({ align: e = "start", children: t, hangingPunctuation: n, id: r, linkVisited: i = !0, measured: o = !0, monospaced: s, responsive: c }) {
|
|
9127
9176
|
let l = a(r);
|
|
9128
9177
|
return {
|
|
9129
9178
|
kind: "element",
|
|
@@ -9144,11 +9193,12 @@ function Nn({ align: e = "start", children: t, hangingPunctuation: n, id: r, lin
|
|
|
9144
9193
|
}]
|
|
9145
9194
|
};
|
|
9146
9195
|
}
|
|
9147
|
-
function
|
|
9148
|
-
return r(
|
|
9196
|
+
function jn(e) {
|
|
9197
|
+
return r(An(e));
|
|
9149
9198
|
}
|
|
9150
|
-
var
|
|
9199
|
+
var Mn = {
|
|
9151
9200
|
name: "prose",
|
|
9201
|
+
category: "typographic",
|
|
9152
9202
|
description: "Use `prose` to style rich-text markup.",
|
|
9153
9203
|
output: {
|
|
9154
9204
|
element: "div",
|
|
@@ -9287,7 +9337,7 @@ var Fn = {
|
|
|
9287
9337
|
] }
|
|
9288
9338
|
};
|
|
9289
9339
|
// src/components/radios/radios.ts
|
|
9290
|
-
function
|
|
9340
|
+
function Nn({ description: e, disabled: t, id: n, invalid: a, radios: o, legend: s, name: c, orientation: l = "vertical", required: u, size: d = "md", value: f }) {
|
|
9291
9341
|
let p = n.trim(), m = c.trim(), h = f?.trim();
|
|
9292
9342
|
if (!p) throw Error("id must be a non-empty string.");
|
|
9293
9343
|
if (!i(p)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -9370,11 +9420,12 @@ function In({ description: e, disabled: t, id: n, invalid: a, radios: o, legend:
|
|
|
9370
9420
|
legend: s
|
|
9371
9421
|
});
|
|
9372
9422
|
}
|
|
9373
|
-
function
|
|
9374
|
-
return r(
|
|
9423
|
+
function Pn(e) {
|
|
9424
|
+
return r(Nn(e));
|
|
9375
9425
|
}
|
|
9376
|
-
var
|
|
9426
|
+
var Fn = {
|
|
9377
9427
|
name: "radios",
|
|
9428
|
+
category: "control",
|
|
9378
9429
|
description: "Use `radios` to let users select one option from a short list.",
|
|
9379
9430
|
output: {
|
|
9380
9431
|
element: "fieldset",
|
|
@@ -9584,7 +9635,7 @@ var Rn = {
|
|
|
9584
9635
|
] }
|
|
9585
9636
|
};
|
|
9586
9637
|
// src/components/root/root.ts
|
|
9587
|
-
function
|
|
9638
|
+
function In({ appOverscrollBehavior: e, appRoot: t, brand: n = "mnsp", children: r, dir: i, id: o, lang: s, theme: c }) {
|
|
9588
9639
|
let l = a(o);
|
|
9589
9640
|
return {
|
|
9590
9641
|
kind: "element",
|
|
@@ -9605,11 +9656,12 @@ function zn({ appOverscrollBehavior: e, appRoot: t, brand: n = "mnsp", children:
|
|
|
9605
9656
|
}] : []
|
|
9606
9657
|
};
|
|
9607
9658
|
}
|
|
9608
|
-
function
|
|
9609
|
-
return r(
|
|
9659
|
+
function Ln(e) {
|
|
9660
|
+
return r(In(e));
|
|
9610
9661
|
}
|
|
9611
|
-
var
|
|
9662
|
+
var Rn = {
|
|
9612
9663
|
name: "root",
|
|
9664
|
+
category: "environment",
|
|
9613
9665
|
description: "Mandatory top-level `root` wrapper for the Set system.",
|
|
9614
9666
|
output: {
|
|
9615
9667
|
element: "div",
|
|
@@ -9751,7 +9803,7 @@ var Vn = {
|
|
|
9751
9803
|
] }
|
|
9752
9804
|
};
|
|
9753
9805
|
// src/components/stack/stack.ts
|
|
9754
|
-
function
|
|
9806
|
+
function zn({ align: e = "stretch", as: t = "div", children: n, gap: r = "md", id: i, responsive: o }) {
|
|
9755
9807
|
let s = a(i);
|
|
9756
9808
|
return {
|
|
9757
9809
|
kind: "element",
|
|
@@ -9769,11 +9821,12 @@ function Hn({ align: e = "stretch", as: t = "div", children: n, gap: r = "md", i
|
|
|
9769
9821
|
}] : []
|
|
9770
9822
|
};
|
|
9771
9823
|
}
|
|
9772
|
-
function
|
|
9773
|
-
return r(
|
|
9824
|
+
function Bn(e) {
|
|
9825
|
+
return r(zn(e));
|
|
9774
9826
|
}
|
|
9775
|
-
var
|
|
9827
|
+
var Vn = {
|
|
9776
9828
|
name: "stack",
|
|
9829
|
+
category: "layout",
|
|
9777
9830
|
description: "Use `stack` to lay out content in a vertical column.",
|
|
9778
9831
|
output: {
|
|
9779
9832
|
element: {
|
|
@@ -9892,7 +9945,7 @@ var Wn = {
|
|
|
9892
9945
|
] }
|
|
9893
9946
|
};
|
|
9894
9947
|
// src/components/surface/surface.ts
|
|
9895
|
-
function
|
|
9948
|
+
function Hn({ children: e, contentTheme: t, id: n, variant: r = "default" }) {
|
|
9896
9949
|
return {
|
|
9897
9950
|
kind: "element",
|
|
9898
9951
|
tag: "div",
|
|
@@ -9908,11 +9961,12 @@ function Gn({ children: e, contentTheme: t, id: n, variant: r = "default" }) {
|
|
|
9908
9961
|
}]
|
|
9909
9962
|
};
|
|
9910
9963
|
}
|
|
9911
|
-
function
|
|
9912
|
-
return r(
|
|
9964
|
+
function Un(e) {
|
|
9965
|
+
return r(Hn(e));
|
|
9913
9966
|
}
|
|
9914
|
-
var
|
|
9967
|
+
var Wn = {
|
|
9915
9968
|
name: "surface",
|
|
9969
|
+
category: "environment",
|
|
9916
9970
|
description: "Use `surface` to set a colour context for nested content.",
|
|
9917
9971
|
output: {
|
|
9918
9972
|
element: "div",
|
|
@@ -9992,7 +10046,7 @@ var qn = {
|
|
|
9992
10046
|
] }
|
|
9993
10047
|
};
|
|
9994
10048
|
// src/components/switch/switch.ts
|
|
9995
|
-
function
|
|
10049
|
+
function Gn({ checked: e, description: t, disabled: n, id: r, label: i, name: o, size: s = "md", value: c }) {
|
|
9996
10050
|
let l = a(r), u = t?.trim();
|
|
9997
10051
|
if (u && !l) throw Error("id must be provided when description is provided.");
|
|
9998
10052
|
let d = u ? `${l}-description` : void 0, f = [{
|
|
@@ -10045,11 +10099,12 @@ function Jn({ checked: e, description: t, disabled: n, id: r, label: i, name: o,
|
|
|
10045
10099
|
children: f
|
|
10046
10100
|
};
|
|
10047
10101
|
}
|
|
10048
|
-
function
|
|
10049
|
-
return r(
|
|
10102
|
+
function Kn(e) {
|
|
10103
|
+
return r(Gn(e));
|
|
10050
10104
|
}
|
|
10051
|
-
var
|
|
10105
|
+
var qn = {
|
|
10052
10106
|
name: "switch",
|
|
10107
|
+
category: "control",
|
|
10053
10108
|
description: "Use `switch` to let users instantly toggle a setting on or off.",
|
|
10054
10109
|
output: {
|
|
10055
10110
|
element: "div",
|
|
@@ -10224,7 +10279,7 @@ var Xn = {
|
|
|
10224
10279
|
] }
|
|
10225
10280
|
};
|
|
10226
10281
|
// src/components/textarea/textarea.ts
|
|
10227
|
-
function
|
|
10282
|
+
function Jn({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, label: o, name: s, readOnly: c, required: l, resize: u = "vertical", rows: d = 2, size: f = "md", spellcheck: p, value: m, inlineSize: h = "full" }) {
|
|
10228
10283
|
let g = r.trim(), _ = t?.trim(), v = e !== !1 && e?.trim(), y = s?.trim(), b = m;
|
|
10229
10284
|
if (!g) throw Error("id must be a non-empty string.");
|
|
10230
10285
|
if (!i(g)) throw Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");
|
|
@@ -10284,11 +10339,12 @@ function Zn({ autocomplete: e, description: t, disabled: n, id: r, invalid: a, l
|
|
|
10284
10339
|
children: w
|
|
10285
10340
|
};
|
|
10286
10341
|
}
|
|
10287
|
-
function
|
|
10288
|
-
return r(
|
|
10342
|
+
function Yn(e) {
|
|
10343
|
+
return r(Jn(e));
|
|
10289
10344
|
}
|
|
10290
|
-
var
|
|
10345
|
+
var Xn = {
|
|
10291
10346
|
name: "textarea",
|
|
10347
|
+
category: "control",
|
|
10292
10348
|
description: "Use `textarea` to collect multiple lines of text from users.",
|
|
10293
10349
|
output: {
|
|
10294
10350
|
element: "div",
|
|
@@ -10609,11 +10665,20 @@ var $n = {
|
|
|
10609
10665
|
}
|
|
10610
10666
|
}
|
|
10611
10667
|
] }
|
|
10612
|
-
}
|
|
10668
|
+
}, Zn = [
|
|
10669
|
+
"control",
|
|
10670
|
+
"environment",
|
|
10671
|
+
"graphic",
|
|
10672
|
+
"layout",
|
|
10673
|
+
"navigation",
|
|
10674
|
+
"status",
|
|
10675
|
+
"structure",
|
|
10676
|
+
"typographic"
|
|
10677
|
+
], Qn = (e) => e.charAt(0).toUpperCase() + e.slice(1), $n = (e) => `${Qn(e.category)}/${Qn(e.name)}`;
|
|
10613
10678
|
// src/index.ts
|
|
10614
10679
|
function er() {
|
|
10615
10680
|
M(), ae(), le(), ve(), Ce(), Me(), Ie(), Ue(), Je();
|
|
10616
10681
|
}
|
|
10617
|
-
export { w as SET_ALERT_EVENT_BEFORE_DISMISS, T as SET_ALERT_EVENT_DISMISS, N as SET_ALERT_SPEC, C as SET_ALERT_TAG_NAME, st as SET_AVATAR_SPEC, ut as SET_BADGE_SPEC, L as SET_BANNER_EVENT_BEFORE_DISMISS, R as SET_BANNER_EVENT_DISMISS, oe as SET_BANNER_SPEC, I as SET_BANNER_TAG_NAME, ht as SET_BLOCKQUOTE_SPEC, vt as SET_BOX_SPEC, S as SET_BUTTON_SPEC, xt as SET_CARD_SPEC, wt as SET_CHECKBOX_SPEC, Dt as SET_CONTAINER_SPEC, At as SET_DETAILS_SPEC, Ft as SET_DITHER_SPEC, Rt as SET_DIVIDER_SPEC, Oe as SET_EXPANDER_SPEC, Vt as SET_FIELDSET_SPEC, Wt as SET_FIGURE_SPEC, Xt as SET_GRID_ITEM_SPEC, Yt as SET_GRID_SPEC, $t as SET_HEADING_SPEC, l as SET_ICON_NAMES, p as SET_ICON_SPEC, ue as SET_IMAGE_SPEC, B as SET_IMAGE_TAG_NAME, nn as SET_INLINE_SPEC, on as SET_INPUT_SPEC, de as SET_LIGHTSWITCH_EVENT_CHANGE, ye as SET_LIGHTSWITCH_SPEC, H as SET_LIGHTSWITCH_STORAGE_KEY, V as SET_LIGHTSWITCH_TAG_NAME, te as SET_LINK_SPEC, yn as SET_LOGO_SPEC, be as SET_MENU_EVENT_CHOOSE, we as SET_MENU_SPEC, W as SET_MENU_TAG_NAME, Ne as SET_NAV_SPEC, G as SET_NAV_TAG_NAME, Sn as SET_PAGE_SPEC, Tn as
|
|
10682
|
+
export { w as SET_ALERT_EVENT_BEFORE_DISMISS, T as SET_ALERT_EVENT_DISMISS, N as SET_ALERT_SPEC, C as SET_ALERT_TAG_NAME, st as SET_AVATAR_SPEC, ut as SET_BADGE_SPEC, L as SET_BANNER_EVENT_BEFORE_DISMISS, R as SET_BANNER_EVENT_DISMISS, oe as SET_BANNER_SPEC, I as SET_BANNER_TAG_NAME, ht as SET_BLOCKQUOTE_SPEC, vt as SET_BOX_SPEC, S as SET_BUTTON_SPEC, xt as SET_CARD_SPEC, wt as SET_CHECKBOX_SPEC, Zn as SET_COMPONENT_CATEGORIES, Dt as SET_CONTAINER_SPEC, At as SET_DETAILS_SPEC, Ft as SET_DITHER_SPEC, Rt as SET_DIVIDER_SPEC, Oe as SET_EXPANDER_SPEC, Vt as SET_FIELDSET_SPEC, Wt as SET_FIGURE_SPEC, Xt as SET_GRID_ITEM_SPEC, Yt as SET_GRID_SPEC, $t as SET_HEADING_SPEC, l as SET_ICON_NAMES, p as SET_ICON_SPEC, ue as SET_IMAGE_SPEC, B as SET_IMAGE_TAG_NAME, nn as SET_INLINE_SPEC, on as SET_INPUT_SPEC, de as SET_LIGHTSWITCH_EVENT_CHANGE, ye as SET_LIGHTSWITCH_SPEC, H as SET_LIGHTSWITCH_STORAGE_KEY, V as SET_LIGHTSWITCH_TAG_NAME, te as SET_LINK_SPEC, yn as SET_LOGO_SPEC, be as SET_MENU_EVENT_CHOOSE, we as SET_MENU_SPEC, W as SET_MENU_TAG_NAME, Ne as SET_NAV_SPEC, G as SET_NAV_TAG_NAME, Sn as SET_PAGE_SPEC, Tn as SET_PATTERN_SPEC, kn as SET_POSTER_SPEC, Mn as SET_PROSE_SPEC, Fn as SET_RADIOS_SPEC, Le as SET_RANGE_SPEC, K as SET_RANGE_TAG_NAME, Rn as SET_ROOT_SPEC, We as SET_SIDEBAR_SPEC, q as SET_SIDEBAR_TAG_NAME, g as SET_SPINNER_SPEC, Vn as SET_STACK_SPEC, Wn as SET_SURFACE_SPEC, qn as SET_SWITCH_SPEC, Xn as SET_TEXTAREA_SPEC, ft as SET_TEXT_SPEC, Ye as SET_VIDEO_SPEC, Y as SET_VIDEO_TAG_NAME, x as applySetButtonActivity, A as buildSetAlert, at as buildSetAvatar, ct as buildSetBadge, re as buildSetBanner, pt as buildSetBlockquote, gt as buildSetBox, y as buildSetButton, yt as buildSetCard, St as buildSetCheckbox, Tt as buildSetContainer, Ot as buildSetDetails, Nt as buildSetDither, It as buildSetDivider, Ee as buildSetExpander, zt as buildSetFieldset, Ht as buildSetFigure, Gt as buildSetGrid, qt as buildSetGridItem, Zt as buildSetHeading, d as buildSetIcon, se as buildSetImage, en as buildSetInline, rn as buildSetInput, ge as buildSetLightswitch, F as buildSetLink, _n as buildSetLogo, xe as buildSetMenu, Ae as buildSetNav, bn as buildSetPage, Cn as buildSetPattern, Dn as buildSetPoster, An as buildSetProse, Nn as buildSetRadios, Pe as buildSetRange, In as buildSetRoot, Ve as buildSetSidebar, m as buildSetSpinner, zn as buildSetStack, Hn as buildSetSurface, Gn as buildSetSwitch, Z as buildSetText, Jn as buildSetTextarea, Ge as buildSetVideo, M as defineSetAlert, ae as defineSetBanner, er as defineSetComponents, le as defineSetImage, ve as defineSetLightswitch, Ce as defineSetMenu, Me as defineSetNav, Ie as defineSetRange, Ue as defineSetSidebar, Je as defineSetVideo, Mt as ditherLevel, t as escapeHtml, Qe as getSetInitials, j as renderSetAlert, ot as renderSetAvatar, lt as renderSetBadge, ie as renderSetBanner, mt as renderSetBlockquote, _t as renderSetBox, b as renderSetButton, bt as renderSetCard, Ct as renderSetCheckbox, Et as renderSetContainer, kt as renderSetDetails, Pt as renderSetDither, Lt as renderSetDivider, De as renderSetExpander, Bt as renderSetFieldset, Ut as renderSetFigure, Kt as renderSetGrid, Jt as renderSetGridItem, Qt as renderSetHeading, f as renderSetIcon, ce as renderSetImage, tn as renderSetInline, an as renderSetInput, _e as renderSetLightswitch, ee as renderSetLink, vn as renderSetLogo, Se as renderSetMenu, je as renderSetNav, xn as renderSetPage, wn as renderSetPattern, On as renderSetPoster, En as renderSetPosterImage, jn as renderSetProse, Pn as renderSetRadios, Fe as renderSetRange, Ln as renderSetRoot, He as renderSetSidebar, h as renderSetSpinner, Bn as renderSetStack, Un as renderSetSurface, Kn as renderSetSwitch, dt as renderSetText, Yn as renderSetTextarea, Ke as renderSetVideo, r as serializeSetNode, $n as specToStoryTitle };
|
|
10618
10683
|
|
|
10619
10684
|
//# sourceMappingURL=index.js.map
|