@six-group/ui-library 5.1.0-rc.1 → 5.1.1

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/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/six-icon.cjs.entry.js +3 -3
  3. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  4. package/dist/cjs/six-icon.entry.cjs.js.map +1 -1
  5. package/dist/cjs/six-tab.cjs.entry.js +3 -3
  6. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  7. package/dist/cjs/six-tab.entry.cjs.js.map +1 -1
  8. package/dist/cjs/ui-library.cjs.js +1 -1
  9. package/dist/collection/components/six-icon/six-icon.css +7 -4
  10. package/dist/collection/components/six-icon/six-icon.js +3 -3
  11. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  12. package/dist/collection/components/six-tab/six-tab.js +22 -3
  13. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  14. package/dist/components/index.js +1 -1
  15. package/dist/components/{p-Dirhd_mz.js → p-BFxDUwBI.js} +3 -3
  16. package/dist/components/{p-Dirhd_mz.js.map → p-BFxDUwBI.js.map} +1 -1
  17. package/dist/components/{p-CzGRjc9h.js → p-C-TgkYhI.js} +3 -3
  18. package/dist/components/{p-CzGRjc9h.js.map → p-C-TgkYhI.js.map} +1 -1
  19. package/dist/components/{p-CcWikBVi.js → p-C6ozoFuw.js} +6 -6
  20. package/dist/components/{p-CcWikBVi.js.map → p-C6ozoFuw.js.map} +1 -1
  21. package/dist/components/{p-CT4IVFqs.js → p-C84iXIFp.js} +5 -5
  22. package/dist/components/p-C84iXIFp.js.map +1 -0
  23. package/dist/components/{p-CoOyRFuR.js → p-CSfxA66i.js} +3 -3
  24. package/dist/components/{p-CoOyRFuR.js.map → p-CSfxA66i.js.map} +1 -1
  25. package/dist/components/{p-KU002yza.js → p-CXsF3egB.js} +4 -4
  26. package/dist/components/{p-KU002yza.js.map → p-CXsF3egB.js.map} +1 -1
  27. package/dist/components/{p-CIsPrMgs.js → p-C_slMKPO.js} +5 -5
  28. package/dist/components/{p-CIsPrMgs.js.map → p-C_slMKPO.js.map} +1 -1
  29. package/dist/components/{p-DkoOhgRO.js → p-DQrAnsWb.js} +3 -3
  30. package/dist/components/{p-DkoOhgRO.js.map → p-DQrAnsWb.js.map} +1 -1
  31. package/dist/components/{p-B5aFlIg7.js → p-DrZr0hMT.js} +3 -3
  32. package/dist/components/{p-B5aFlIg7.js.map → p-DrZr0hMT.js.map} +1 -1
  33. package/dist/components/{p-Cj4iCimX.js → p-SZP6K3B0.js} +3 -3
  34. package/dist/components/{p-Cj4iCimX.js.map → p-SZP6K3B0.js.map} +1 -1
  35. package/dist/components/six-alert.js +2 -2
  36. package/dist/components/six-avatar.js +1 -1
  37. package/dist/components/six-breadcrumbs.js +1 -1
  38. package/dist/components/six-date.js +3 -3
  39. package/dist/components/six-datepicker.js +4 -4
  40. package/dist/components/six-details.js +1 -1
  41. package/dist/components/six-dialog.js +2 -2
  42. package/dist/components/six-drawer.js +2 -2
  43. package/dist/components/six-dropdown.js +1 -1
  44. package/dist/components/six-file-list-item.js +1 -1
  45. package/dist/components/six-file-upload.js +1 -1
  46. package/dist/components/six-header-dropdown-item.js +5 -5
  47. package/dist/components/six-icon-button.js +1 -1
  48. package/dist/components/six-icon.js +1 -1
  49. package/dist/components/six-input.js +1 -1
  50. package/dist/components/six-item-picker.js +1 -1
  51. package/dist/components/six-menu-item.js +1 -1
  52. package/dist/components/six-menu.js +1 -1
  53. package/dist/components/six-rating.js +1 -1
  54. package/dist/components/six-root.js +2 -2
  55. package/dist/components/six-search-field.js +2 -2
  56. package/dist/components/six-select.js +6 -6
  57. package/dist/components/six-sidebar-item-group.js +2 -2
  58. package/dist/components/six-sidebar-item.js +1 -1
  59. package/dist/components/six-stage-indicator.js +1 -1
  60. package/dist/components/six-tab-group.js +2 -2
  61. package/dist/components/six-tab.js +6 -5
  62. package/dist/components/six-tab.js.map +1 -1
  63. package/dist/components/six-tag.js +2 -2
  64. package/dist/components/six-tile.js +2 -2
  65. package/dist/components/six-timepicker.js +1 -1
  66. package/dist/components.json +28 -2
  67. package/dist/esm/loader.js +1 -1
  68. package/dist/esm/six-icon.entry.js +3 -3
  69. package/dist/esm/six-icon.entry.js.map +1 -1
  70. package/dist/esm/six-tab.entry.js +3 -3
  71. package/dist/esm/six-tab.entry.js.map +1 -1
  72. package/dist/esm/ui-library.js +1 -1
  73. package/dist/types/components/six-icon/six-icon.d.ts +1 -2
  74. package/dist/types/components/six-tab/six-tab.d.ts +2 -0
  75. package/dist/types/components.d.ts +10 -2
  76. package/dist/ui-library/{p-9b75e009.entry.js → p-a9a5485a.entry.js} +2 -2
  77. package/dist/ui-library/p-a9a5485a.entry.js.map +1 -0
  78. package/dist/ui-library/p-dc694314.entry.js +2 -0
  79. package/dist/ui-library/p-dc694314.entry.js.map +1 -0
  80. package/dist/ui-library/six-icon.entry.esm.js.map +1 -1
  81. package/dist/ui-library/six-tab.entry.esm.js.map +1 -1
  82. package/dist/ui-library/ui-library.css +1 -1
  83. package/dist/ui-library/ui-library.esm.js +1 -1
  84. package/package.json +1 -1
  85. package/dist/components/p-CT4IVFqs.js.map +0 -1
  86. package/dist/ui-library/p-9b75e009.entry.js.map +0 -1
  87. package/dist/ui-library/p-cf2fc033.entry.js +0 -2
  88. package/dist/ui-library/p-cf2fc033.entry.js.map +0 -1
@@ -1 +0,0 @@
1
- {"file":"p-CT4IVFqs.js","mappings":";;AAEA,IAAI,cAAc,GAAgB,gBAAgB;AAElD;AACM,SAAU,qBAAqB,CAAC,GAAgB,EAAA;IACpD,cAAc,GAAG,GAAG;AACtB;AAEA;SACgB,qBAAqB,GAAA;AACnC,IAAA,OAAO,cAAc;AACvB;;ACZA,MAAM,UAAU,GAAG,srCAAsrC;;MCe5rC,OAAO,iBAAAA,kBAAA,CAAA,MAAA,OAAA,SAAAC,CAAA,CAAA;AALpB,IAAA,WAAA,GAAA;;;;;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A,0CAAA,EAAA,CAAA,CACX;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/utils/icon.ts","src/components/six-icon/six-icon.scss?tag=six-icon&encapsulation=shadow","src/components/six-icon/six-icon.tsx"],"sourcesContent":["export type IconLibrary = 'material-icons' | 'material-symbols';\n\nlet defaultLibrary: IconLibrary = 'material-icons';\n\n/** Sets the global default for all <six-icon> instances that don't specify `library`. */\nexport function setDefaultIconLibrary(lib: IconLibrary) {\n defaultLibrary = lib;\n}\n\n/** Returns the global default (fallback is 'material-icons'). */\nexport function getDefaultIconLibrary(): IconLibrary {\n return defaultLibrary;\n}\n","/* ==========================================================================\n Common icon text baseline\n ========================================================================== */\n\n.material-icons,\n.material-icons-outlined,\n.material-icons-filled,\n.material-symbols-outlined,\n.material-symbols {\n display: inline-block;\n vertical-align: middle;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n word-wrap: normal;\n white-space: nowrap;\n direction: ltr;\n\n /* rendering */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: 'liga';\n font-style: normal;\n font-weight: normal;\n font-synthesis-weight: none;\n user-select: none;\n}\n\n/* ==========================================================================\n Material Icons (classic)\n ========================================================================== */\n\n.material-icons-filled {\n font-family: 'Material Icons';\n}\n\n.material-icons-outlined {\n font-family: 'Material Icons Outlined';\n}\n\n/* ==========================================================================\n Material Symbols (variable font)\n We always use the \"Outlined Variable\" family and drive style via axes.\n (One font for both outlined/filled via FILL axis.)\n ========================================================================== */\n\n.material-symbols-outlined,\n.material-symbols {\n font-family: 'Material Symbols Outlined Variable';\n\n /* Base variations shared by both */\n font-variation-settings:\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* Outlined → FILL 0 */\n.material-symbols-outlined {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* Filled → FILL 1 */\n.material-symbols {\n font-variation-settings:\n 'FILL' 1,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* ==========================================================================\n Size helpers (unchanged API, a bit more explicit)\n ========================================================================== */\n\n.icon {\n &--xsmall {\n font-size: 12px;\n }\n &--small {\n font-size: 18px;\n }\n &--medium {\n font-size: 24px;\n } /* default in Google’s docs */\n &--large {\n font-size: 36px;\n }\n &--xlarge {\n font-size: 48px;\n }\n &--xxlarge {\n font-size: 72px;\n }\n &--xxxlarge {\n font-size: 96px;\n }\n &--inherit {\n font-size: 1.5em;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { getDefaultIconLibrary, IconLibrary } from '../../utils/icon';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the material icon name.\n */\n\n@Component({\n tag: 'six-icon',\n styleUrls: ['six-icon.scss'],\n shadow: true,\n})\nexport class SixIcon {\n /** The icon's size. */\n @Prop({ reflect: true }) size:\n | 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge' = 'inherit';\n\n /** If set to true the default material outlined icons are not used. */\n @Prop() filled = false;\n\n /**\n * Icon library to use when no `library` prop is provided.\n * By default, all `<six-icon>` instances fall back to the globally configured\n * default library (via `setDefaultIconLibrary()` / `getDefaultIconLibrary()`),\n * which is `\"material-icons\"` unless changed at runtime.\n *\n * This allows teams to switch the default across an entire project without\n * having to set the `library` prop on every `<six-icon>` instance.\n */\n\n /**\n * Icon library for this instance. Overrides the global default.\n * - \"material-icons\" → Material Icons\n * - \"material-symbols\" → Material Symbols\n */\n @Prop({ reflect: true }) library?: IconLibrary;\n\n private isSymbols(): boolean {\n const lib = this.library ?? getDefaultIconLibrary();\n return lib === 'material-symbols';\n }\n\n render() {\n const isSymbols = this.isSymbols();\n return (\n <i\n class={{\n 'material-icons': !isSymbols,\n 'material-icons-outlined': !isSymbols && !this.filled,\n 'material-icons-filled': !isSymbols && this.filled,\n\n 'material-symbols-outlined': isSymbols && !this.filled,\n 'material-symbols': isSymbols && this.filled,\n\n 'icon--xsmall': this.size === 'xSmall',\n 'icon--small': this.size === 'small',\n 'icon--medium': this.size === 'medium',\n 'icon--large': this.size === 'large',\n 'icon--xlarge': this.size === 'xLarge',\n 'icon--xxlarge': this.size === 'xxLarge',\n 'icon--xxxlarge': this.size === 'xxxLarge',\n 'icon--inherit': this.size === 'inherit',\n }}\n >\n <slot></slot>\n </i>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixTabCss","id","SixTab","constructor","hostRef","this","componentId","panel","active","closable","disabled","connectedCallback","handleCloseClick","bind","setFocus","options","_a","tab","focus","removeFocus","blur","sixClose","emit","render","tabGroup","host","closest","placement","h","Host","key","part","ref","el","class","role","tabindex","title","innerHTML","name","size","exportparts","onClick","tabIndex","tab__indicator"],"sources":["src/components/six-tab/six-tab.scss?tag=six-tab&encapsulation=shadow","src/components/six-tab/six-tab.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: flex;\n}\n\n.tab {\n display: inline-flex;\n align-items: center;\n font-family: var(--six-font-family);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-semibold);\n color: var(--six-tab-color);\n padding: var(--six-spacing-medium) var(--six-spacing-large);\n white-space: nowrap;\n user-select: none;\n cursor: pointer;\n width: 100%;\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: var(--six-focus-ring);\n outline-offset: calc(-1 * var(--six-focus-ring-width) - var(--six-focus-ring-offset));\n }\n\n &.tab--active:not(.tab--disabled) {\n color: var(--six-tab-color-active);\n font-weight: var(--six-font-weight-bold);\n }\n\n &.tab--closable {\n padding-right: var(--six-spacing-small);\n }\n\n &.tab--disabled {\n color: var(--six-tab-color-disabled);\n cursor: not-allowed;\n }\n\n &:hover:not(.tab--disabled) {\n color: var(--six-tab-color-hover);\n }\n\n &.tab--left,\n &.tab--right {\n display: inline-block;\n text-align: left;\n }\n\n &.tab--left::before,\n &.tab--right::before {\n display: block;\n font-weight: var(--six-font-weight-bold);\n content: attr(title);\n height: 0;\n overflow: hidden;\n visibility: hidden;\n }\n}\n\n.tab__close-button {\n font-size: var(--six-font-size-large);\n margin-left: var(--six-spacing-xx-small);\n\n &::part(base) {\n padding: var(--six-spacing-xxx-small);\n }\n}\n\n// TAB INDICATOR\n.tab__indicator {\n position: absolute;\n &.tab__indicator--active {\n background-color: var(--six-tab-border-color-active);\n }\n}\n\n// TOP\n.tab--top {\n margin-bottom: var(--six-spacing-xxx-small);\n}\n\n.tab__indicator--top {\n width: 100%;\n bottom: 0;\n height: var(--six-tab-border-width);\n}\n\n// BOTTOM\n.tab--bottom {\n margin-top: var(--six-spacing-xxx-small);\n}\n\n.tab__indicator--bottom {\n width: 100%;\n top: 0;\n height: var(--six-tab-border-width);\n}\n\n// LEFT\n.tab--left {\n margin-right: var(--six-spacing-xxx-small);\n}\n\n.tab__indicator--left {\n height: 100%;\n right: 0;\n top: 0;\n width: var(--six-tab-border-width);\n}\n\n// RIGHT\n.tab--right {\n margin-left: var(--six-spacing-xxx-small);\n}\n\n.tab__indicator--right {\n height: 100%;\n left: 0;\n top: 0;\n width: var(--six-tab-border-width);\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab's label.\n *\n * @part base - The component's base wrapper.\n * @part close-button - The close button, which is the icon button's base wrapper.\n */\n\n@Component({\n tag: 'six-tab',\n styleUrl: 'six-tab.scss',\n shadow: true,\n})\nexport class SixTab {\n private componentId = `tab-${++id}`;\n private tab?: HTMLElement;\n\n @Element() host!: HTMLSixTabElement;\n\n /** The name of the tab panel the tab will control. The panel must be located in the same tab group. */\n @Prop({ reflect: true }) panel = '';\n\n /** Set to true to draw the tab in an active state. */\n @Prop({ reflect: true }) active = false;\n\n /** When true, the tab will be rendered with a close icon. */\n @Prop() closable = false;\n\n /** Set to true to draw the tab in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Emitted when the tab is closable and the close button is activated. */\n @Event({ eventName: 'six-tab-close' }) sixClose!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleCloseClick = this.handleCloseClick.bind(this);\n }\n\n /** Sets focus to the tab. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.tab?.focus(options);\n }\n\n /** Removes focus from the tab. */\n @Method()\n async removeFocus() {\n this.tab?.blur();\n }\n\n private handleCloseClick() {\n this.sixClose.emit();\n }\n\n render() {\n const tabGroup: HTMLSixTabGroupElement | null = this.host.closest('six-tab-group');\n const placement = tabGroup?.placement ?? 'top';\n return (\n // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId}>\n <div\n part=\"base\"\n ref={(el) => (this.tab = el)}\n class={{\n tab: true,\n\n // Placements\n 'tab--top': placement === 'top',\n 'tab--bottom': placement === 'bottom',\n 'tab--left': placement === 'left',\n 'tab--right': placement === 'right',\n\n // States\n 'tab--active': this.active,\n 'tab--closable': this.closable,\n 'tab--disabled': this.disabled,\n }}\n role=\"tab\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-selected={this.active ? 'true' : 'false'}\n tabindex={this.disabled || !this.active ? '-1' : '0'}\n title={this.host.innerHTML}\n >\n <slot />\n {this.closable && (\n <six-icon-button\n name=\"close\"\n size=\"xSmall\"\n exportparts=\"base:close-button\"\n class=\"tab__close-button\"\n onClick={this.handleCloseClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n />\n )}\n </div>\n <div\n part={this.active ? 'active-tab-indicator' : ''}\n class={{\n tab__indicator: true,\n 'tab__indicator--active': this.active,\n\n // Placements\n 'tab__indicator--top': placement === 'top',\n 'tab__indicator--bottom': placement === 'bottom',\n 'tab__indicator--left': placement === 'left',\n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AKI,UACJmB,EAAA,mBAAAE,IAAA,2CACES,KAAK,QACLC,KAAK,SACLC,YAAY,oBACZP,MAAM,oBACNQ,QAASrC,KAAKO,iBACd+B,UAAU,EAAE,cACA,UAIlBf,EAAA,OAAAE,IAAA,2CACEC,KAAM1B,KAAKG,OAAS,uBAAyB,GAC7C0B,MAAO,CACLU,eAAgB,KAChB,yBAA0BvC,KAAKG,OAG/B,sBAAuBmB,IAAc,MACrC,yBAA0BA,IAAc,SACxC,uBAAwBA,IAAc,OACtC,wBAAyBA,IAAc,W","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as i,h as t}from"./p-JoG9I7EO.js";import{g as e}from"./p-DqHJRLQQ.js";const o='@charset "UTF-8";.material-icons,.material-icons-outlined,.material-icons-filled,.material-symbols-outlined,.material-symbols{display:inline-block;vertical-align:middle;line-height:1;letter-spacing:normal;text-transform:none;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"liga";font-style:normal;font-weight:normal;font-synthesis-weight:none;user-select:none}.material-icons-filled{font-family:"Material Icons"}.material-icons-outlined{font-family:"Material Icons Outlined"}.material-symbols-outlined,.material-symbols{font-family:"Material Symbols Outlined Variable";font-variation-settings:"wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.icon{}.icon--xsmall{font-size:12px}.icon--small{font-size:18px}.icon--medium{font-size:24px}.icon--large{font-size:36px}.icon--xlarge{font-size:48px}.icon--xxlarge{font-size:72px}.icon--xxxlarge{font-size:96px}.icon--inherit{font-size:1.5em}';const s=class{constructor(t){i(this,t);this.size="inherit";this.filled=false}isSymbols(){var i;const t=(i=this.library)!==null&&i!==void 0?i:e();return t==="material-symbols"}render(){const i=this.isSymbols();return t("i",{key:"16e77cf0c2d44ff84165fdf28bc353c09ac6d36a",class:{"material-icons":!i,"material-icons-outlined":!i&&!this.filled,"material-icons-filled":!i&&this.filled,"material-symbols-outlined":i&&!this.filled,"material-symbols":i&&this.filled,"icon--xsmall":this.size==="xSmall","icon--small":this.size==="small","icon--medium":this.size==="medium","icon--large":this.size==="large","icon--xlarge":this.size==="xLarge","icon--xxlarge":this.size==="xxLarge","icon--xxxlarge":this.size==="xxxLarge","icon--inherit":this.size==="inherit"}},t("slot",{key:"5f25e9413be4ec300c0b42cfb24115548dd331e1"}))}};s.style=o;export{s as six_icon};
2
- //# sourceMappingURL=p-cf2fc033.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixIconCss","SixIcon","constructor","hostRef","this","size","filled","isSymbols","lib","_a","library","getDefaultIconLibrary","render","h","key","class"],"sources":["src/components/six-icon/six-icon.scss?tag=six-icon&encapsulation=shadow","src/components/six-icon/six-icon.tsx"],"sourcesContent":["/* ==========================================================================\n Common icon text baseline\n ========================================================================== */\n\n.material-icons,\n.material-icons-outlined,\n.material-icons-filled,\n.material-symbols-outlined,\n.material-symbols {\n display: inline-block;\n vertical-align: middle;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n word-wrap: normal;\n white-space: nowrap;\n direction: ltr;\n\n /* rendering */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: 'liga';\n font-style: normal;\n font-weight: normal;\n font-synthesis-weight: none;\n user-select: none;\n}\n\n/* ==========================================================================\n Material Icons (classic)\n ========================================================================== */\n\n.material-icons-filled {\n font-family: 'Material Icons';\n}\n\n.material-icons-outlined {\n font-family: 'Material Icons Outlined';\n}\n\n/* ==========================================================================\n Material Symbols (variable font)\n We always use the \"Outlined Variable\" family and drive style via axes.\n (One font for both outlined/filled via FILL axis.)\n ========================================================================== */\n\n.material-symbols-outlined,\n.material-symbols {\n font-family: 'Material Symbols Outlined Variable';\n\n /* Base variations shared by both */\n font-variation-settings:\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* Outlined → FILL 0 */\n.material-symbols-outlined {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* Filled → FILL 1 */\n.material-symbols {\n font-variation-settings:\n 'FILL' 1,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* ==========================================================================\n Size helpers (unchanged API, a bit more explicit)\n ========================================================================== */\n\n.icon {\n &--xsmall {\n font-size: 12px;\n }\n &--small {\n font-size: 18px;\n }\n &--medium {\n font-size: 24px;\n } /* default in Google’s docs */\n &--large {\n font-size: 36px;\n }\n &--xlarge {\n font-size: 48px;\n }\n &--xxlarge {\n font-size: 72px;\n }\n &--xxxlarge {\n font-size: 96px;\n }\n &--inherit {\n font-size: 1.5em;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { getDefaultIconLibrary, IconLibrary } from '../../utils/icon';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the material icon name.\n */\n\n@Component({\n tag: 'six-icon',\n styleUrls: ['six-icon.scss'],\n shadow: true,\n})\nexport class SixIcon {\n /** The icon's size. */\n @Prop({ reflect: true }) size:\n | 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge' = 'inherit';\n\n /** If set to true the default material outlined icons are not used. */\n @Prop() filled = false;\n\n /**\n * Icon library to use when no `library` prop is provided.\n * By default, all `<six-icon>` instances fall back to the globally configured\n * default library (via `setDefaultIconLibrary()` / `getDefaultIconLibrary()`),\n * which is `\"material-icons\"` unless changed at runtime.\n *\n * This allows teams to switch the default across an entire project without\n * having to set the `library` prop on every `<six-icon>` instance.\n */\n\n /**\n * Icon library for this instance. Overrides the global default.\n * - \"material-icons\" → Material Icons\n * - \"material-symbols\" → Material Symbols\n */\n @Prop({ reflect: true }) library?: IconLibrary;\n\n private isSymbols(): boolean {\n const lib = this.library ?? getDefaultIconLibrary();\n return lib === 'material-symbols';\n }\n\n render() {\n const isSymbols = this.isSymbols();\n return (\n <i\n class={{\n 'material-icons': !isSymbols,\n 'material-icons-outlined': !isSymbols && !this.filled,\n 'material-icons-filled': !isSymbols && this.filled,\n\n 'material-symbols-outlined': isSymbols && !this.filled,\n 'material-symbols': isSymbols && this.filled,\n\n 'icon--xsmall': this.size === 'xSmall',\n 'icon--small': this.size === 'small',\n 'icon--medium': this.size === 'medium',\n 'icon--large': this.size === 'large',\n 'icon--xlarge': this.size === 'xLarge',\n 'icon--xxlarge': this.size === 'xxLarge',\n 'icon--xxxlarge': this.size === 'xxxLarge',\n 'icon--inherit': this.size === 'inherit',\n }}\n >\n <slot></slot>\n </i>\n );\n }\n}\n"],"mappings":"+EAAA,MAAMA,EAAa,upC,MCeNC,EAAO,MALpB,WAAAC,CAAAC,G,UAO2BC,KAAIC,KAQZ,UAGTD,KAAME,OAAG,KAkDlB,CA/BS,SAAAC,G,MACN,MAAMC,GAAMC,EAAAL,KAAKM,WAAO,MAAAD,SAAA,EAAAA,EAAIE,IAC5B,OAAOH,IAAQ,kB,CAGjB,MAAAI,GACE,MAAML,EAAYH,KAAKG,YACvB,OACEM,EACE,KAAAC,IAAA,2CAAAC,MAAO,CACL,kBAAmBR,EACnB,2BAA4BA,IAAcH,KAAKE,OAC/C,yBAA0BC,GAAaH,KAAKE,OAE5C,4BAA6BC,IAAcH,KAAKE,OAChD,mBAAoBC,GAAaH,KAAKE,OAEtC,eAAgBF,KAAKC,OAAS,SAC9B,cAAeD,KAAKC,OAAS,QAC7B,eAAgBD,KAAKC,OAAS,SAC9B,cAAeD,KAAKC,OAAS,QAC7B,eAAgBD,KAAKC,OAAS,SAC9B,gBAAiBD,KAAKC,OAAS,UAC/B,iBAAkBD,KAAKC,OAAS,WAChC,gBAAiBD,KAAKC,OAAS,YAGjCQ,EAAa,QAAAC,IAAA,6C","ignoreList":[]}