@skedulo/breeze-ui 0.9.2 → 0.9.4

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.
@@ -890,6 +890,97 @@
890
890
  }
891
891
  ]
892
892
  },
893
+ {
894
+ "kind": "javascript-module",
895
+ "path": "src/helpers/css-helpers.ts",
896
+ "declarations": [
897
+ {
898
+ "kind": "function",
899
+ "name": "getFocusStyles",
900
+ "parameters": [
901
+ {
902
+ "name": "selector",
903
+ "type": {
904
+ "text": "string"
905
+ },
906
+ "description": "A CSS selector targeting an interactive element."
907
+ },
908
+ {
909
+ "name": "extraRules",
910
+ "default": "css``",
911
+ "description": "Optional rules to append. Useful for overrides."
912
+ }
913
+ ],
914
+ "description": "Returns a CSSResult applying focus outline styles to a given interactive\nelement. Reduces repetition throughout multiple components.\n\nTargets modern `:focus-visible` by default and includes a `:focus` fallback\nfor older browsers."
915
+ },
916
+ {
917
+ "kind": "variable",
918
+ "name": "invisibleButtonRules",
919
+ "default": "css`\n background: none;\n border: 0;\n border-radius: var(--brz-border-radius-default);\n color: var(--brz-color-neutral-750);\n cursor: pointer;\n display: inline-flex;\n font: inherit;\n margin: 0;\n padding: 0;\n`",
920
+ "description": "CSS rules to apply invisible styles to buttons. Use within a CSS declaration\nblock."
921
+ },
922
+ {
923
+ "kind": "function",
924
+ "name": "getInvisibleButtonStyles",
925
+ "parameters": [
926
+ {
927
+ "name": "selector",
928
+ "type": {
929
+ "text": "string"
930
+ },
931
+ "description": "A CSS selector targeting a button"
932
+ },
933
+ {
934
+ "name": "extraRules",
935
+ "default": "css``",
936
+ "description": "Optional rules to append. Useful for overrides."
937
+ }
938
+ ],
939
+ "description": "Returns a CSSResult applying invisible styles to a button matching the given\nselector. Invisible buttons are a common pattern for icon-only close buttons.\n\nSince this applies to buttons, default focus styles are also automatically\nincluded for the selector. If you don't need them, or need to customise them,\nuse `invisibleButtonStyles` and `getFocusStyles()` separately instead."
940
+ }
941
+ ],
942
+ "exports": [
943
+ {
944
+ "kind": "js",
945
+ "name": "getFocusStyles",
946
+ "declaration": {
947
+ "name": "getFocusStyles",
948
+ "module": "src/helpers/css-helpers.ts"
949
+ }
950
+ },
951
+ {
952
+ "kind": "js",
953
+ "name": "invisibleButtonRules",
954
+ "declaration": {
955
+ "name": "invisibleButtonRules",
956
+ "module": "src/helpers/css-helpers.ts"
957
+ }
958
+ },
959
+ {
960
+ "kind": "js",
961
+ "name": "getInvisibleButtonStyles",
962
+ "declaration": {
963
+ "name": "getInvisibleButtonStyles",
964
+ "module": "src/helpers/css-helpers.ts"
965
+ }
966
+ }
967
+ ]
968
+ },
969
+ {
970
+ "kind": "javascript-module",
971
+ "path": "src/helpers/index.ts",
972
+ "declarations": [],
973
+ "exports": [
974
+ {
975
+ "kind": "js",
976
+ "name": "*",
977
+ "declaration": {
978
+ "name": "*",
979
+ "package": "./css-helpers"
980
+ }
981
+ }
982
+ ]
983
+ },
893
984
  {
894
985
  "kind": "javascript-module",
895
986
  "path": "src/components/alert.ts",
@@ -19213,91 +19304,181 @@
19213
19304
  },
19214
19305
  {
19215
19306
  "kind": "javascript-module",
19216
- "path": "src/helpers/css-helpers.ts",
19307
+ "path": "src/storybook/colors.stories.ts",
19217
19308
  "declarations": [
19218
19309
  {
19219
- "kind": "function",
19220
- "name": "getFocusStyles",
19221
- "parameters": [
19310
+ "kind": "class",
19311
+ "description": "Story component to render a colour swatch.\nWill extract the hex code from a supplied color var and use it as the background.",
19312
+ "name": "ColorSwatch",
19313
+ "members": [
19222
19314
  {
19223
- "name": "selector",
19315
+ "kind": "field",
19316
+ "name": "colorVar",
19224
19317
  "type": {
19225
19318
  "text": "string"
19226
19319
  },
19227
- "description": "A CSS selector targeting an interactive element."
19320
+ "default": "''",
19321
+ "attribute": "colorVar"
19228
19322
  },
19229
19323
  {
19230
- "name": "extraRules",
19231
- "default": "css``",
19232
- "description": "Optional rules to append. Useful for overrides."
19324
+ "kind": "field",
19325
+ "name": "lightText",
19326
+ "type": {
19327
+ "text": "boolean"
19328
+ },
19329
+ "default": "false",
19330
+ "attribute": "light-text"
19233
19331
  }
19234
19332
  ],
19235
- "description": "Returns a CSSResult applying focus outline styles to a given interactive\nelement. Reduces repetition throughout multiple components.\n\nTargets modern `:focus-visible` by default and includes a `:focus` fallback\nfor older browsers."
19236
- },
19237
- {
19238
- "kind": "variable",
19239
- "name": "invisibleButtonRules",
19240
- "default": "css`\n background: none;\n border: 0;\n border-radius: var(--brz-border-radius-default);\n color: var(--brz-color-neutral-750);\n cursor: pointer;\n display: inline-flex;\n font: inherit;\n margin: 0;\n padding: 0;\n`",
19241
- "description": "CSS rules to apply invisible styles to buttons. Use within a CSS declaration\nblock."
19242
- },
19243
- {
19244
- "kind": "function",
19245
- "name": "getInvisibleButtonStyles",
19246
- "parameters": [
19333
+ "attributes": [
19247
19334
  {
19248
- "name": "selector",
19335
+ "name": "colorVar",
19249
19336
  "type": {
19250
19337
  "text": "string"
19251
19338
  },
19252
- "description": "A CSS selector targeting a button"
19339
+ "default": "''",
19340
+ "fieldName": "colorVar"
19253
19341
  },
19254
19342
  {
19255
- "name": "extraRules",
19256
- "default": "css``",
19257
- "description": "Optional rules to append. Useful for overrides."
19343
+ "name": "light-text",
19344
+ "type": {
19345
+ "text": "boolean"
19346
+ },
19347
+ "default": "false",
19348
+ "fieldName": "lightText"
19258
19349
  }
19259
19350
  ],
19260
- "description": "Returns a CSSResult applying invisible styles to a button matching the given\nselector. Invisible buttons are a common pattern for icon-only close buttons.\n\nSince this applies to buttons, default focus styles are also automatically\nincluded for the selector. If you don't need them, or need to customise them,\nuse `invisibleButtonStyles` and `getFocusStyles()` separately instead."
19351
+ "superclass": {
19352
+ "name": "LitElement",
19353
+ "package": "lit"
19354
+ },
19355
+ "tagName": "brz-sb-color-swatch",
19356
+ "customElement": true
19357
+ },
19358
+ {
19359
+ "kind": "class",
19360
+ "description": "Story component for laying out a group of swatches",
19361
+ "name": "ColorSwatchGroup",
19362
+ "members": [
19363
+ {
19364
+ "kind": "field",
19365
+ "name": "stacked",
19366
+ "type": {
19367
+ "text": "boolean"
19368
+ },
19369
+ "default": "false",
19370
+ "attribute": "stacked"
19371
+ }
19372
+ ],
19373
+ "attributes": [
19374
+ {
19375
+ "name": "stacked",
19376
+ "type": {
19377
+ "text": "boolean"
19378
+ },
19379
+ "default": "false",
19380
+ "fieldName": "stacked"
19381
+ }
19382
+ ],
19383
+ "superclass": {
19384
+ "name": "LitElement",
19385
+ "package": "lit"
19386
+ },
19387
+ "tagName": "brz-sb-color-swatch-group",
19388
+ "customElement": true
19261
19389
  }
19262
19390
  ],
19263
19391
  "exports": [
19264
19392
  {
19265
19393
  "kind": "js",
19266
- "name": "getFocusStyles",
19394
+ "name": "ColorSwatch",
19267
19395
  "declaration": {
19268
- "name": "getFocusStyles",
19269
- "module": "src/helpers/css-helpers.ts"
19396
+ "name": "ColorSwatch",
19397
+ "module": "src/storybook/colors.stories.ts"
19270
19398
  }
19271
19399
  },
19272
19400
  {
19273
- "kind": "js",
19274
- "name": "invisibleButtonRules",
19401
+ "kind": "custom-element-definition",
19402
+ "name": "brz-sb-color-swatch",
19275
19403
  "declaration": {
19276
- "name": "invisibleButtonRules",
19277
- "module": "src/helpers/css-helpers.ts"
19404
+ "name": "ColorSwatch",
19405
+ "module": "src/storybook/colors.stories.ts"
19278
19406
  }
19279
19407
  },
19280
19408
  {
19281
19409
  "kind": "js",
19282
- "name": "getInvisibleButtonStyles",
19410
+ "name": "ColorSwatchGroup",
19283
19411
  "declaration": {
19284
- "name": "getInvisibleButtonStyles",
19285
- "module": "src/helpers/css-helpers.ts"
19412
+ "name": "ColorSwatchGroup",
19413
+ "module": "src/storybook/colors.stories.ts"
19414
+ }
19415
+ },
19416
+ {
19417
+ "kind": "custom-element-definition",
19418
+ "name": "brz-sb-color-swatch-group",
19419
+ "declaration": {
19420
+ "name": "ColorSwatchGroup",
19421
+ "module": "src/storybook/colors.stories.ts"
19286
19422
  }
19287
19423
  }
19288
19424
  ]
19289
19425
  },
19290
19426
  {
19291
19427
  "kind": "javascript-module",
19292
- "path": "src/helpers/index.ts",
19293
- "declarations": [],
19428
+ "path": "src/storybook/fade-in-out.stories.ts",
19429
+ "declarations": [
19430
+ {
19431
+ "kind": "class",
19432
+ "description": "",
19433
+ "name": "FadeInOutStory",
19434
+ "members": [
19435
+ {
19436
+ "kind": "field",
19437
+ "name": "shown",
19438
+ "type": {
19439
+ "text": "boolean"
19440
+ },
19441
+ "default": "false",
19442
+ "attribute": "shown"
19443
+ },
19444
+ {
19445
+ "kind": "method",
19446
+ "name": "handleToggle"
19447
+ }
19448
+ ],
19449
+ "attributes": [
19450
+ {
19451
+ "name": "shown",
19452
+ "type": {
19453
+ "text": "boolean"
19454
+ },
19455
+ "default": "false",
19456
+ "fieldName": "shown"
19457
+ }
19458
+ ],
19459
+ "superclass": {
19460
+ "name": "LitElement",
19461
+ "package": "lit"
19462
+ },
19463
+ "tagName": "brz-sb-fade-in-out",
19464
+ "customElement": true
19465
+ }
19466
+ ],
19294
19467
  "exports": [
19295
19468
  {
19296
19469
  "kind": "js",
19297
- "name": "*",
19470
+ "name": "FadeInOutStory",
19298
19471
  "declaration": {
19299
- "name": "*",
19300
- "package": "./css-helpers"
19472
+ "name": "FadeInOutStory",
19473
+ "module": "src/storybook/fade-in-out.stories.ts"
19474
+ }
19475
+ },
19476
+ {
19477
+ "kind": "custom-element-definition",
19478
+ "name": "brz-sb-fade-in-out",
19479
+ "declaration": {
19480
+ "name": "FadeInOutStory",
19481
+ "module": "src/storybook/fade-in-out.stories.ts"
19301
19482
  }
19302
19483
  }
19303
19484
  ]
@@ -19439,187 +19620,6 @@
19439
19620
  }
19440
19621
  ]
19441
19622
  },
19442
- {
19443
- "kind": "javascript-module",
19444
- "path": "src/storybook/colors.stories.ts",
19445
- "declarations": [
19446
- {
19447
- "kind": "class",
19448
- "description": "Story component to render a colour swatch.\nWill extract the hex code from a supplied color var and use it as the background.",
19449
- "name": "ColorSwatch",
19450
- "members": [
19451
- {
19452
- "kind": "field",
19453
- "name": "colorVar",
19454
- "type": {
19455
- "text": "string"
19456
- },
19457
- "default": "''",
19458
- "attribute": "colorVar"
19459
- },
19460
- {
19461
- "kind": "field",
19462
- "name": "lightText",
19463
- "type": {
19464
- "text": "boolean"
19465
- },
19466
- "default": "false",
19467
- "attribute": "light-text"
19468
- }
19469
- ],
19470
- "attributes": [
19471
- {
19472
- "name": "colorVar",
19473
- "type": {
19474
- "text": "string"
19475
- },
19476
- "default": "''",
19477
- "fieldName": "colorVar"
19478
- },
19479
- {
19480
- "name": "light-text",
19481
- "type": {
19482
- "text": "boolean"
19483
- },
19484
- "default": "false",
19485
- "fieldName": "lightText"
19486
- }
19487
- ],
19488
- "superclass": {
19489
- "name": "LitElement",
19490
- "package": "lit"
19491
- },
19492
- "tagName": "brz-sb-color-swatch",
19493
- "customElement": true
19494
- },
19495
- {
19496
- "kind": "class",
19497
- "description": "Story component for laying out a group of swatches",
19498
- "name": "ColorSwatchGroup",
19499
- "members": [
19500
- {
19501
- "kind": "field",
19502
- "name": "stacked",
19503
- "type": {
19504
- "text": "boolean"
19505
- },
19506
- "default": "false",
19507
- "attribute": "stacked"
19508
- }
19509
- ],
19510
- "attributes": [
19511
- {
19512
- "name": "stacked",
19513
- "type": {
19514
- "text": "boolean"
19515
- },
19516
- "default": "false",
19517
- "fieldName": "stacked"
19518
- }
19519
- ],
19520
- "superclass": {
19521
- "name": "LitElement",
19522
- "package": "lit"
19523
- },
19524
- "tagName": "brz-sb-color-swatch-group",
19525
- "customElement": true
19526
- }
19527
- ],
19528
- "exports": [
19529
- {
19530
- "kind": "js",
19531
- "name": "ColorSwatch",
19532
- "declaration": {
19533
- "name": "ColorSwatch",
19534
- "module": "src/storybook/colors.stories.ts"
19535
- }
19536
- },
19537
- {
19538
- "kind": "custom-element-definition",
19539
- "name": "brz-sb-color-swatch",
19540
- "declaration": {
19541
- "name": "ColorSwatch",
19542
- "module": "src/storybook/colors.stories.ts"
19543
- }
19544
- },
19545
- {
19546
- "kind": "js",
19547
- "name": "ColorSwatchGroup",
19548
- "declaration": {
19549
- "name": "ColorSwatchGroup",
19550
- "module": "src/storybook/colors.stories.ts"
19551
- }
19552
- },
19553
- {
19554
- "kind": "custom-element-definition",
19555
- "name": "brz-sb-color-swatch-group",
19556
- "declaration": {
19557
- "name": "ColorSwatchGroup",
19558
- "module": "src/storybook/colors.stories.ts"
19559
- }
19560
- }
19561
- ]
19562
- },
19563
- {
19564
- "kind": "javascript-module",
19565
- "path": "src/storybook/fade-in-out.stories.ts",
19566
- "declarations": [
19567
- {
19568
- "kind": "class",
19569
- "description": "",
19570
- "name": "FadeInOutStory",
19571
- "members": [
19572
- {
19573
- "kind": "field",
19574
- "name": "shown",
19575
- "type": {
19576
- "text": "boolean"
19577
- },
19578
- "default": "false",
19579
- "attribute": "shown"
19580
- },
19581
- {
19582
- "kind": "method",
19583
- "name": "handleToggle"
19584
- }
19585
- ],
19586
- "attributes": [
19587
- {
19588
- "name": "shown",
19589
- "type": {
19590
- "text": "boolean"
19591
- },
19592
- "default": "false",
19593
- "fieldName": "shown"
19594
- }
19595
- ],
19596
- "superclass": {
19597
- "name": "LitElement",
19598
- "package": "lit"
19599
- },
19600
- "tagName": "brz-sb-fade-in-out",
19601
- "customElement": true
19602
- }
19603
- ],
19604
- "exports": [
19605
- {
19606
- "kind": "js",
19607
- "name": "FadeInOutStory",
19608
- "declaration": {
19609
- "name": "FadeInOutStory",
19610
- "module": "src/storybook/fade-in-out.stories.ts"
19611
- }
19612
- },
19613
- {
19614
- "kind": "custom-element-definition",
19615
- "name": "brz-sb-fade-in-out",
19616
- "declaration": {
19617
- "name": "FadeInOutStory",
19618
- "module": "src/storybook/fade-in-out.stories.ts"
19619
- }
19620
- }
19621
- ]
19622
- },
19623
19623
  {
19624
19624
  "kind": "javascript-module",
19625
19625
  "path": "src/styles/borders.ts",