@frontile/buttons 0.18.0-alpha.1 → 0.18.0-alpha.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.js","sources":["../../src/components/button-group.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { hash } from '@ember/helper';\nimport { useStyles } from '@frontile/theme';\nimport Button, { type ButtonSignature } from './button';\nimport type { ButtonArgs } from './button';\nimport ToggleButton, { type ToggleButtonSignature } from './toggle-button';\nimport type { ComponentLike, WithBoundArgs } from '@glint/template';\n\ninterface ButtonGroupArgs\n extends Pick<ButtonArgs, 'appearance' | 'intent' | 'size' | 'class'> {}\n\ninterface ButtonGroupSignature {\n Args: ButtonGroupArgs;\n Blocks: {\n default: [\n {\n Button: WithBoundArgs<ComponentLike<ButtonSignature>, 'isInGroup'>;\n ToggleButton: WithBoundArgs
|
|
1
|
+
{"version":3,"file":"button-group.js","sources":["../../src/components/button-group.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { hash } from '@ember/helper';\nimport { useStyles } from '@frontile/theme';\nimport Button, { type ButtonSignature } from './button';\nimport type { ButtonArgs } from './button';\nimport ToggleButton, { type ToggleButtonSignature } from './toggle-button';\nimport type { ComponentLike, WithBoundArgs } from '@glint/template';\n\ninterface ButtonGroupArgs\n extends Pick<ButtonArgs, 'appearance' | 'intent' | 'size' | 'class'> {}\n\ninterface ButtonGroupSignature {\n Args: ButtonGroupArgs;\n Blocks: {\n default: [\n {\n Button: WithBoundArgs<ComponentLike<ButtonSignature>, 'isInGroup'>;\n ToggleButton: WithBoundArgs<\n ComponentLike<ToggleButtonSignature>,\n 'isInGroup'\n >;\n }\n ];\n };\n Element: HTMLDivElement;\n}\n\nclass ButtonGroup extends Component<ButtonGroupSignature> {\n get classNames(): string {\n const { buttonGroup } = useStyles();\n\n return buttonGroup({\n class: this.args.class\n });\n }\n\n <template>\n <div class={{this.classNames}} role=\"group\" ...attributes>\n {{yield\n (hash\n Button=(component\n Button\n isInGroup=true\n appearance=@appearance\n intent=@intent\n size=@size\n )\n ToggleButton=(component\n ToggleButton isInGroup=true intent=@intent size=@size\n )\n )\n }}\n </div>\n </template>\n}\n\nexport { ButtonGroup, type ButtonGroupSignature };\nexport default ButtonGroup;\n"],"names":["ButtonGroup","Component","classNames","buttonGroup","useStyles","class","args","setComponentTemplate","precompileTemplate","strictMode","scope","hash","Button","ToggleButton"],"mappings":";;;;;;;;AA2BA,MAAMA,oBAAoBC,SAAA,CAAU;EAClC,IAAIC,UAAAA,GAAqB;IACvB,MAAM;AAAEC,MAAAA;KAAa,GAAGC,SAAA,EAAA;AAExB,IAAA,OAAOD,WAAA,CAAY;AACjBE,MAAAA,KAAA,EAAO,IAAI,CAACC,IAAI,CAACD;AACnB,KAAA,CAAA;AACF,EAAA;AAEA,EAAA;IAAAE,oBAAA,CAAAC,kBAAA,CAAA,qRAAA,EAiBA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,IAAA;QAAAC,MAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/buttons",
|
|
3
|
-
"version": "0.18.0-alpha.
|
|
3
|
+
"version": "0.18.0-alpha.2",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Buttons",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@embroider/addon-shim": "^1.9.0",
|
|
56
|
-
"@frontile/theme": "0.18.0-alpha.
|
|
57
|
-
"@frontile/utilities": "0.18.0-alpha.
|
|
56
|
+
"@frontile/theme": "0.18.0-alpha.2",
|
|
57
|
+
"@frontile/utilities": "0.18.0-alpha.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@babel/core": "7.26.7",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@glint/core": "1.5.2",
|
|
67
67
|
"@glint/environment-ember-loose": "1.5.2",
|
|
68
68
|
"@glint/environment-ember-template-imports": "1.5.2",
|
|
69
|
-
"@glint/template": "1.
|
|
69
|
+
"@glint/template": "^1.7.4",
|
|
70
70
|
"@rollup/plugin-babel": "^6.0.4",
|
|
71
71
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
72
72
|
"@tsconfig/ember": "^3.0.9",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"./components/toggle-button.js": "./dist/_app_/components/toggle-button.js"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "43e69f7d367baa0fc78b46bf11625a8b3979534a"
|
|
108
108
|
}
|